Добавил интерфейсы моделей данных
This commit is contained in:
parent
f00274367f
commit
844d2d770b
7
InternetShop/InternetShopDataModels/IId.cs
Normal file
7
InternetShop/InternetShopDataModels/IId.cs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
namespace InternetShopDataModels
|
||||||
|
{
|
||||||
|
public interface IId
|
||||||
|
{
|
||||||
|
int Id { get; }
|
||||||
|
}
|
||||||
|
}
|
10
InternetShop/InternetShopDataModels/Models/IOrderModel.cs
Normal file
10
InternetShop/InternetShopDataModels/Models/IOrderModel.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
namespace InternetShopDataModels.Models
|
||||||
|
{
|
||||||
|
public interface IProductModel : IId
|
||||||
|
{
|
||||||
|
string Name { get; }
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user