Добавил биндинг модели

This commit is contained in:
Никита Потапов 2024-11-19 21:40:30 +04:00
parent 830442dfe1
commit fadc72399f
3 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,13 @@
using InternetShopDataModels.Models;
namespace InternetShopContracts.DataBindingModels
{
public class OrderBindingModel : IOrderModel
{
public string CustomerFIO { get; set; } = string.Empty;
public string CustomerEmail { get; set; } = string.Empty;
public string ImagePath { get; set; } = string.Empty;
public List<string> ProductNames { get; set; } = new List<string>();
public int Id { get; set; }
}
}

View File

@ -0,0 +1,10 @@
using InternetShopDataModels.Models;
namespace InternetShopContracts.DataBindingModels
{
public class ProductBindingModel : IProductModel
{
public string Name { get; set; } = string.Empty;
public int Id { get; set; }
}
}

View File

@ -6,4 +6,8 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\InternetShopDataModels\InternetShopDataModels.csproj" />
</ItemGroup>
</Project>