Emelyanov A.S. LabWork_2_Hard #11
@ -22,5 +22,6 @@ namespace FishFactoryContracts.BindingModels
|
||||
get;
|
||||
set;
|
||||
} = new();
|
||||
public int MaxCountCanneds { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -18,5 +18,7 @@ namespace FishFactoryContracts.BusinessLogicsContracts
|
||||
bool Update(ShopBindingModel model);
|
||||
bool Delete(ShopBindingModel model);
|
||||
bool AddCannedInShop(ShopSearchModel model, ICannedModel canned, int count);
|
||||
bool AddCanneds(ICannedModel canned, int count);
|
||||
bool SellCanneds(ICannedModel canned, int count);
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
using FishFactoryContracts.BindingModels;
|
||||
using FishFactoryContracts.SearchModels;
|
||||
using FishFactoryContracts.ViewModels;
|
||||
using FishFactoryDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@ -17,5 +18,6 @@ namespace FishFactoryContracts.StoragesContracts
|
||||
ShopViewModel? Insert(ShopBindingModel model);
|
||||
ShopViewModel? Update(ShopBindingModel model);
|
||||
ShopViewModel? Delete(ShopBindingModel model);
|
||||
bool SellCanneds(ICannedModel model, int count);
|
||||
}
|
||||
}
|
||||
|
@ -21,6 +21,9 @@ namespace FishFactoryContracts.ViewModels
|
||||
[DisplayName("Дата открытия")]
|
||||
public DateTime DateOpening { get; set; } = DateTime.Now;
|
||||
|
||||
[DisplayName("Максимальное количество консерв")]
|
||||
public int MaxCountCanneds { get; set; }
|
||||
|
||||
public Dictionary<int, (ICannedModel, int)> ListCanneds
|
||||
{
|
||||
get;
|
||||
|
@ -13,5 +13,6 @@ namespace FishFactoryDataModels
|
||||
string Address { get; }
|
||||
DateTime DateOpening { get; }
|
||||
Dictionary<int, (ICannedModel, int)> ListCanneds { get; }
|
||||
int MaxCountCanneds { get; }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user