contracts

This commit is contained in:
VictoriaPresnyakova 2023-06-16 21:22:37 +04:00
parent f75f75f888
commit 3c45143f01
4 changed files with 9 additions and 0 deletions

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