Newer
Older
eShopOnWeb-MessageDriven / src / BlazorShared / Interfaces / ICatalogItemService.cs
@Derek Comartin Derek Comartin on 29 Jun 2021 492 bytes Add NServiceBus
using System.Collections.Generic;
using System.Threading.Tasks;
using BlazorShared.Models;

namespace BlazorShared.Interfaces
{
    public interface ICatalogItemService
    {
        Task<CatalogItem> Create(CreateCatalogItemRequest catalogItem);
        Task<CatalogItem> Edit(CatalogItem catalogItem);
        Task<string> Delete(int id);
        Task<CatalogItem> GetById(int id);
        Task<List<CatalogItem>> ListPaged(int pageSize);
        Task<List<CatalogItem>> List();
    }
}