From 16d4303ccc2c6b6ada6a9da656086bb4c67d7ec6 Mon Sep 17 00:00:00 2001 From: Damien Ostler Date: Sun, 18 Feb 2024 07:32:44 -0500 Subject: [PATCH] fix: missing --- .../Models/SellerProfile/SellerProfileModel.cs | 1 + .../Models/SellerProfile/SellerProfileModelExtensions.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/comissions.app.api/Models/SellerProfile/SellerProfileModel.cs b/src/comissions.app.api/Models/SellerProfile/SellerProfileModel.cs index 6ecc3a3..f6475aa 100644 --- a/src/comissions.app.api/Models/SellerProfile/SellerProfileModel.cs +++ b/src/comissions.app.api/Models/SellerProfile/SellerProfileModel.cs @@ -10,4 +10,5 @@ public class SellerProfileModel public string Description { get; set; } public string SocialMeidaLink4 { get; set; } public string RequestGuidelines { get; set; } + public string Name { get; set; } } \ No newline at end of file diff --git a/src/comissions.app.api/Models/SellerProfile/SellerProfileModelExtensions.cs b/src/comissions.app.api/Models/SellerProfile/SellerProfileModelExtensions.cs index 74a3b27..881a8eb 100644 --- a/src/comissions.app.api/Models/SellerProfile/SellerProfileModelExtensions.cs +++ b/src/comissions.app.api/Models/SellerProfile/SellerProfileModelExtensions.cs @@ -11,6 +11,7 @@ public static class SellerProfileModelExtensions return new SellerProfileModel() { Id = sellerProfile.Id, + Name = sellerProfile.Name, SocialMeidaLink1 = sellerProfile.SocialMediaLink1, SocialMeidaLink2 = sellerProfile.SocialMediaLink2, SocialMeidaLink3 = sellerProfile.SocialMediaLink3, @@ -59,6 +60,7 @@ public static class SellerProfileModelExtensions } public static UserSellerProfile ToModel(this SellerProfileModel sellerProfile, UserSellerProfile existingSellerProfile) { + existingSellerProfile.Name = sellerProfile.Name; existingSellerProfile.SocialMediaLink1 = sellerProfile.SocialMeidaLink1; existingSellerProfile.SocialMediaLink2 = sellerProfile.SocialMeidaLink2; existingSellerProfile.SocialMediaLink3 = sellerProfile.SocialMeidaLink3;