Добавил view модели

This commit is contained in:
Никита Потапов 2024-11-19 22:23:42 +04:00
parent 9f6b8ec085
commit 3e356cb08e
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,14 @@
using InternetShopDataModels.Models;
using System.ComponentModel;
namespace InternetShopContracts.DataViewModels
{
public class OrderViewModel : 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.DataViewModels
{
public class ProductViewModel : IProductModel
{
public string Name { get; set; } = string.Empty;
public int Id { get; set; }
}
}