mirror of
https://github.com/D4M13N-D3V/comissions-app-core-api.git
synced 2025-03-14 10:04:55 +00:00
fix: api now returns Id of seller in the response for get seller profile
This commit is contained in:
parent
d8d51b4560
commit
742f5b02dd
@ -2,6 +2,7 @@ namespace comissions.app.api.Models.SellerProfile;
|
|||||||
|
|
||||||
public class SellerProfileModel
|
public class SellerProfileModel
|
||||||
{
|
{
|
||||||
|
public int Id { get; set; }
|
||||||
public List<string> SocialMediaLinks { get; set; }
|
public List<string> SocialMediaLinks { get; set; }
|
||||||
public string Biography { get; set; }
|
public string Biography { get; set; }
|
||||||
public bool PrepaymentRequired { get; set; }
|
public bool PrepaymentRequired { get; set; }
|
||||||
|
@ -10,11 +10,13 @@ public static class SellerProfileModelExtensions
|
|||||||
{
|
{
|
||||||
return new SellerProfileModel()
|
return new SellerProfileModel()
|
||||||
{
|
{
|
||||||
|
Id = sellerProfile.Id,
|
||||||
SocialMediaLinks = sellerProfile.SocialMediaLinks,
|
SocialMediaLinks = sellerProfile.SocialMediaLinks,
|
||||||
Biography = sellerProfile.Biography,
|
Biography = sellerProfile.Biography,
|
||||||
PrepaymentRequired = sellerProfile.PrepaymentRequired
|
PrepaymentRequired = sellerProfile.PrepaymentRequired
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public static DiscoverySellerModel ToDiscoveryModelWithoutReviews(this UserSellerProfile sellerProfile)
|
public static DiscoverySellerModel ToDiscoveryModelWithoutReviews(this UserSellerProfile sellerProfile)
|
||||||
{
|
{
|
||||||
return new DiscoverySellerModel()
|
return new DiscoverySellerModel()
|
||||||
|
@ -13,7 +13,7 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyCompanyAttribute("comissions.app.database.migrator")]
|
[assembly: System.Reflection.AssemblyCompanyAttribute("comissions.app.database.migrator")]
|
||||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+d9f01cc96c3f3488ff1ffabc8c18ff2ed9192d31")]
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+d8d51b456050a060dd0ecc4ad9e1563fa2516ff2")]
|
||||||
[assembly: System.Reflection.AssemblyProductAttribute("comissions.app.database.migrator")]
|
[assembly: System.Reflection.AssemblyProductAttribute("comissions.app.database.migrator")]
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("comissions.app.database.migrator")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("comissions.app.database.migrator")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
@ -1 +1 @@
|
|||||||
c6d58bbb171a5f23ad416c7cc86ea9dc93efccc8a6b6525298ad1e8fa000718c
|
a282da1bb9c181a212285cc35598ecd3419f40b57c41b5e385a87aca4aed9fd3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user