Исправление
This commit is contained in:
parent
dea2ccc826
commit
80eb3374b1
@ -2,11 +2,11 @@
|
||||
|
||||
namespace FlowerShopContracts.BindingModels
|
||||
{
|
||||
public class ProductBindingModel : IProductModel
|
||||
public class BouquetBindingModel : IBouquetModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string ProductName { get; set; } = string.Empty;
|
||||
public string BouquetName { get; set; } = string.Empty;
|
||||
public double Price { get; set; }
|
||||
public Dictionary<int, (IComponentModel, int)> ProductComponents { get; set; } = new();
|
||||
public Dictionary<int, (IComponentModel, int)> BouquetComponents { get; set; } = new();
|
||||
}
|
||||
}
|
@ -6,7 +6,7 @@ namespace FlowerShopContracts.BindingModels
|
||||
public class OrderBindingModel : IOrderModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int ProductId { get; set; }
|
||||
public int BouquetId { get; set; }
|
||||
public int Count { get; set; }
|
||||
public double Sum { get; set; }
|
||||
public OrderStatus Status { get; set; } = OrderStatus.Unknown;
|
||||
|
@ -1,8 +1,8 @@
|
||||
namespace FlowerShopContracts.SearchModels
|
||||
{
|
||||
public class ProductSearchModel
|
||||
public class BouquetSearchModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public string? ProductName { get; set; }
|
||||
public string? BouquetName { get; set; }
|
||||
}
|
||||
}
|
||||
|
9
FlowerShop/FlowerShopDataModels/IBouquetModel.cs
Normal file
9
FlowerShop/FlowerShopDataModels/IBouquetModel.cs
Normal file
@ -0,0 +1,9 @@
|
||||
namespace FlowerShopDataModels.Models
|
||||
{
|
||||
public interface IBouquetModel : IId
|
||||
{
|
||||
string BouquetName { get; }
|
||||
double Price { get; }
|
||||
Dictionary<int, (IComponentModel, int)> BouquetComponents { get; }
|
||||
}
|
||||
}
|
@ -4,7 +4,7 @@ namespace FlowerShopDataModels.Models
|
||||
{
|
||||
public interface IOrderModel : IId
|
||||
{
|
||||
int ProductId { get; }
|
||||
int BouquetId { get; }
|
||||
int Count { get; }
|
||||
double Sum { get; }
|
||||
OrderStatus Status { get; }
|
||||
|
@ -1,9 +0,0 @@
|
||||
namespace FlowerShopDataModels.Models
|
||||
{
|
||||
public interface IProductModel : IId
|
||||
{
|
||||
string ProductName { get; }
|
||||
double Price { get; }
|
||||
Dictionary<int, (IComponentModel, int)> ProductComponents { get; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user