Добавил биндинг модели
This commit is contained in:
parent
830442dfe1
commit
fadc72399f
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -6,4 +6,8 @@
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\InternetShopDataModels\InternetShopDataModels.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
Loading…
Reference in New Issue
Block a user