Добавил интерфейсы моделей данных

This commit is contained in:
Никита Потапов 2024-11-19 21:09:33 +04:00
parent f00274367f
commit 844d2d770b
3 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,7 @@
namespace InternetShopDataModels
{
public interface IId
{
int Id { get; }
}
}

View File

@ -0,0 +1,10 @@
namespace InternetShopDataModels.Models
{
public interface IOrderModel : IId
{
string CustomerFIO { get; }
string CustomerEmail { get; }
string ImagePath { get; }
List<IProductModel> Products { get; }
}
}

View File

@ -0,0 +1,7 @@
namespace InternetShopDataModels.Models
{
public interface IProductModel : IId
{
string Name { get; }
}
}