This commit is contained in:
Damien Ostler 2024-02-20 00:47:44 -05:00
parent 7bd3d3366c
commit 5bc3e443a2
3 changed files with 4 additions and 2 deletions

View File

@ -39,5 +39,5 @@ public class ArtistPageSettingsModel
public string HeaderColor { get; set; }
public string BackgroundColor { get; set; }
public string RequestButtonHoverTextColor { get; set; }
public ArtistModel Artist { get; set; }
public ArtistModel? Artist { get; set; }
}

View File

@ -1,4 +1,5 @@
using comissions.app.database.Entities;
using Newtonsoft.Json;
namespace comissions.app.api.Models.Artist;
@ -7,6 +8,7 @@ public static class ArtistPageSettingsModelExtensions
public static ArtistPageSettingsModel ToModel(this ArtistPageSettings sellerProfile)
{
Console.WriteLine(JsonConvert.SerializeObject(sellerProfile));
return new ArtistPageSettingsModel()
{
BackgroundColor = sellerProfile.BackgroundColor,