25 lines
826 B
C#
25 lines
826 B
C#
using GiftShopContracts.BindingModels;
|
|
using GiftShopContracts.ViewModels;
|
|
using GiftShopContracts.SearchModels;
|
|
using GiftShopDataModels.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace GiftShopContracts.BusinessLogicsContracts
|
|
{
|
|
public interface IShopLogic
|
|
{
|
|
List<ShopViewModel>? ReadList(ShopSearchModel? model);
|
|
ShopViewModel? ReadElement(ShopSearchModel model);
|
|
bool Create(ShopBindingModel model);
|
|
bool Update(ShopBindingModel model);
|
|
bool Delete(ShopBindingModel model);
|
|
bool AddGift(ShopSearchModel model, IGiftModel gift, int quantity);
|
|
bool MakeSupply(ShopSearchModel model, IGiftModel gift, int count);
|
|
bool MakeSell(IGiftModel gift, int count);
|
|
}
|
|
}
|