PIAPS_CW/Contracts/BusinessLogicContracts/IPurchaseLogic.cs

28 lines
754 B
C#

using Contracts.BindingModels;
using Contracts.SearchModels;
using Contracts.ViewModels;
using DataModels.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contracts.BusinessLogicContracts
{
public interface IPurchaseLogic
{
PurchaseViewModel Create(PurchaseBindingModel model);
PurchaseViewModel Update(PurchaseBindingModel model);
PurchaseViewModel ReadElement(PurchaseSearchModel model);
List<PurchaseViewModel> ReadElements(PurchaseSearchModel? model);
PurchaseViewModel Delete(PurchaseSearchModel model);
List<CartItemViewModel> GetCartItems(PurchaseSearchModel model);
List<ProductViewModel> GetProducts(PurchaseSearchModel model);
}
}