Emelyanov A.S. LabWork_2_Hard #11

Closed
Emelyanov535 wants to merge 7 commits from LabWork_02_Hard into LabWork_01_Hard
5 changed files with 9 additions and 0 deletions
Showing only changes of commit 6396dcaf90 - Show all commits

View File

@ -22,5 +22,6 @@ namespace FishFactoryContracts.BindingModels
get;
set;
} = new();
public int MaxCountCanneds { get; set; }
}
}

View File

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

View File

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

View File

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

View File

@ -13,5 +13,6 @@ namespace FishFactoryDataModels
string Address { get; }
DateTime DateOpening { get; }
Dictionary<int, (ICannedModel, int)> ListCanneds { get; }
int MaxCountCanneds { get; }
}
}