Исправление

This commit is contained in:
Сергей Полевой 2023-01-29 18:59:33 +04:00
parent dea2ccc826
commit 80eb3374b1
6 changed files with 16 additions and 16 deletions

View File

@ -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();
}
}

View File

@ -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;

View File

@ -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; }
}
}

View File

@ -0,0 +1,9 @@
namespace FlowerShopDataModels.Models
{
public interface IBouquetModel : IId
{
string BouquetName { get; }
double Price { get; }
Dictionary<int, (IComponentModel, int)> BouquetComponents { get; }
}
}

View File

@ -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; }

View File

@ -1,9 +0,0 @@
namespace FlowerShopDataModels.Models
{
public interface IProductModel : IId
{
string ProductName { get; }
double Price { get; }
Dictionary<int, (IComponentModel, int)> ProductComponents { get; }
}
}