Presnyakova V.V Lab_2_Hard #12

Closed
Victoria_Presnyakova wants to merge 26 commits from Lab_2_Hard into Lab_1_Hard
4 changed files with 9 additions and 0 deletions
Showing only changes of commit 3c45143f01 - Show all commits

View File

@ -17,5 +17,7 @@ namespace JewelryStoreContracts.BindingModels
public Dictionary<int, (IJewelModel, int)> Jewels { get; set; } = new();
public int Id { get; set; }
public int PackageMaxCount { get; set; }
}
}

View File

@ -18,5 +18,7 @@ namespace JewelryStoreContracts.BusinessLogicsContracts
bool Update(StoreBindingModel model);
bool Delete(StoreBindingModel model);
bool AddJewel(StoreSearchModel model, IJewelModel jewel, int quantity);
bool AddJewel(IJewelModel jewel, int quantity);
bool SellJewel(IJewelModel jewel, int quantity);
}
}

View File

@ -1,6 +1,7 @@
using JewelryStoreContracts.BindingModels;
using JewelryStoreContracts.SearchModels;
using JewelryStoreContracts.ViewModels;
using JewelryStoreDataModels.Models;
using System;
using System.Collections.Generic;
using System.Linq;
@ -17,5 +18,6 @@ namespace JewelryStoreContracts.StoragesContracts
StoreViewModel? Insert(StoreBindingModel model);
StoreViewModel? Update(StoreBindingModel model);
StoreViewModel? Delete(StoreBindingModel model);
bool SellJewel(IJewelModel model, int quantity);
}
}

View File

@ -19,5 +19,8 @@ namespace JewelryStoreContracts.ViewModels
public string StoreAdress { get; set; } = string.Empty;
[DisplayName("Дата открытия")]
public DateTime OpeningDate { get; set; } = DateTime.Now;
[DisplayName("Вместимость магазина")]
public int PackageMaxCount { get; set; }
}
}