fix: missing

This commit is contained in:
Damien Ostler 2024-02-18 07:32:44 -05:00
parent 8e2c3116c8
commit 16d4303ccc
2 changed files with 3 additions and 0 deletions

View File

@ -10,4 +10,5 @@ public class SellerProfileModel
public string Description { get; set; } public string Description { get; set; }
public string SocialMeidaLink4 { get; set; } public string SocialMeidaLink4 { get; set; }
public string RequestGuidelines { get; set; } public string RequestGuidelines { get; set; }
public string Name { get; set; }
} }

View File

@ -11,6 +11,7 @@ public static class SellerProfileModelExtensions
return new SellerProfileModel() return new SellerProfileModel()
{ {
Id = sellerProfile.Id, Id = sellerProfile.Id,
Name = sellerProfile.Name,
SocialMeidaLink1 = sellerProfile.SocialMediaLink1, SocialMeidaLink1 = sellerProfile.SocialMediaLink1,
SocialMeidaLink2 = sellerProfile.SocialMediaLink2, SocialMeidaLink2 = sellerProfile.SocialMediaLink2,
SocialMeidaLink3 = sellerProfile.SocialMediaLink3, SocialMeidaLink3 = sellerProfile.SocialMediaLink3,
@ -59,6 +60,7 @@ public static class SellerProfileModelExtensions
} }
public static UserSellerProfile ToModel(this SellerProfileModel sellerProfile, UserSellerProfile existingSellerProfile) public static UserSellerProfile ToModel(this SellerProfileModel sellerProfile, UserSellerProfile existingSellerProfile)
{ {
existingSellerProfile.Name = sellerProfile.Name;
existingSellerProfile.SocialMediaLink1 = sellerProfile.SocialMeidaLink1; existingSellerProfile.SocialMediaLink1 = sellerProfile.SocialMeidaLink1;
existingSellerProfile.SocialMediaLink2 = sellerProfile.SocialMeidaLink2; existingSellerProfile.SocialMediaLink2 = sellerProfile.SocialMeidaLink2;
existingSellerProfile.SocialMediaLink3 = sellerProfile.SocialMeidaLink3; existingSellerProfile.SocialMediaLink3 = sellerProfile.SocialMeidaLink3;