Presnyakova V.V Lab_2_Hard #12
@ -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; }
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user