session-companion/SessionCompanion/SessionCompanion.Services/Interfaces/IShopkeeperService.cs

21 lines
852 B
C#
Raw Permalink Normal View History

2020-12-05 21:47:12 +01:00
using SessionCompanion.Database.Tables;
using SessionCompanion.Extensions.EitherType;
2020-12-05 21:47:12 +01:00
using SessionCompanion.Services.Base;
using SessionCompanion.ViewModels.ApiResponses;
2021-01-20 18:55:11 +01:00
using SessionCompanion.ViewModels.ShopkeeperViewModels;
2020-12-05 21:47:12 +01:00
using System;
using System.Collections.Generic;
2021-01-20 18:55:11 +01:00
using System.Linq;
2020-12-05 21:47:12 +01:00
using System.Text;
using System.Threading.Tasks;
namespace SessionCompanion.Services.Interfaces
{
2021-01-20 18:55:11 +01:00
public interface IShopkeeperService : IServiceBase<ShopkeeperViewModel, Shopkeeper>
2020-12-05 21:47:12 +01:00
{
Task<Either<SuccessResponse, ErrorResponse>> CreateNewShopKeeper(ShopkeeperWithItemsViewModel shopkeeperWithItemsViewModel);
Task<Either<SuccessResponse, ErrorResponse>> ChangeShopkeeperStatus(int shopkeeperId, bool availability);
2021-01-22 08:00:03 +01:00
Task<Either<ShopkeeperWithItemsDetailsViewModel, ErrorResponse>> GetActiveShkopkeeperWithItems();
2020-12-05 21:47:12 +01:00
}
}