mirror of
https://github.com/D4M13N-D3V/comissions-app-core-api.git
synced 2025-03-14 10:04:55 +00:00
fix: seller discovery endpoint now returns name
This commit is contained in:
parent
d260603b34
commit
fe2aa82935
@ -3,6 +3,7 @@ namespace comissions.app.api.Models.Discovery;
|
|||||||
public class DiscoverySellerModel
|
public class DiscoverySellerModel
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
public string Name { 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; }
|
||||||
|
@ -19,6 +19,7 @@ public static class SellerProfileModelExtensions
|
|||||||
{
|
{
|
||||||
return new DiscoverySellerModel()
|
return new DiscoverySellerModel()
|
||||||
{
|
{
|
||||||
|
Name = sellerProfile.User.DisplayName,
|
||||||
Id = sellerProfile.Id,
|
Id = sellerProfile.Id,
|
||||||
SocialMediaLinks = sellerProfile.SocialMediaLinks,
|
SocialMediaLinks = sellerProfile.SocialMediaLinks,
|
||||||
Biography = sellerProfile.Biography,
|
Biography = sellerProfile.Biography,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user