выывы
This commit is contained in:
parent
0e64524320
commit
d6bc4aca61
@ -123,10 +123,6 @@ namespace TravelCompanyBusinessLogic.BusinessLogics
|
||||
{
|
||||
throw new ArgumentException($"Поставка: Товар с id:{model.TravelId} не найденн");
|
||||
}
|
||||
if (shop.ShopTravels.Sum(kv => kv.Value.Item2) + model.Count > shop.TravelMaxCount)
|
||||
{
|
||||
throw new ArgumentException("Превышена максимальная вместимость магазина");
|
||||
}
|
||||
shop.ShopTravels.Add(model.TravelId, (Travel, model.Count));
|
||||
}
|
||||
|
||||
@ -143,7 +139,6 @@ namespace TravelCompanyBusinessLogic.BusinessLogics
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
private void CheckModel(ShopBindingModel model, bool withParams = true)
|
||||
{
|
||||
if (model == null)
|
||||
|
Loading…
Reference in New Issue
Block a user