using AircraftPlantContracts.BindingModels; using AircraftPlantContracts.SearchModels; using AircraftPlantContracts.ViewModels; using AircraftPlantDataModels.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AircraftPlantContracts.BusinessLogicsContracts { /// /// Интерфейс для описания работы бизнес-логики для магазинов /// public interface IShopLogic { /// /// Получение списка /// /// /// List? ReadList(ShopSearchModel? model); /// /// Получение отдельной записи /// /// /// ShopViewModel? ReadElement(ShopSearchModel model); /// /// Создание записи /// /// /// bool Create(ShopBindingModel model); /// /// Изменение записи /// /// /// bool Update(ShopBindingModel model); /// /// Удаление записи /// /// /// bool Delete(ShopBindingModel model); /// /// Добавление изделия в магазин /// /// /// /// /// bool AddPlaneInShop(ShopSearchModel model, IPlaneModel plane, int count); /// /// Продажа изделий /// /// /// /// bool SellPlanes(IPlaneModel plane, int count); } }