Создание и заполнение BusinessLogicsContracts

This commit is contained in:
Кашин Максим 2023-04-01 20:00:11 +04:00
parent a0b135e995
commit 06d4ab7272
4 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,15 @@
using HotelContracts.BindingModels;
using HotelContracts.SearchModels;
using HotelContracts.ViewModels;
namespace HotelContracts.BusinessLogicsContracts
{
public interface IConferenceBookingLogic
{
List<ConferenceBookingViewModel>? ReadList(ConferenceBookingSearchModel? model);
MealPlanViewModel? ReadElement(MealPlanSearchModel model);
bool Create(ConferenceBookingBindingModel model);
bool Update(ConferenceBookingBindingModel model);
bool Delete(ConferenceBookingBindingModel model);
}
}

View File

@ -0,0 +1,16 @@
using HotelContracts.BindingModels;
using HotelContracts.SearchModels;
using HotelContracts.ViewModels;
namespace HotelContracts.BusinessLogicsContracts
{
public interface IDinnerLogic
{
List<DinnerViewModel>? ReadList(DinnerSearchModel? model);
DinnerViewModel? ReadElement(DinnerSearchModel model);
bool Create(DinnerBindingModel model);
bool Update(DinnerBindingModel model);
bool Delete(DinnerBindingModel model);
}
}

View File

@ -0,0 +1,15 @@
using HotelContracts.BindingModels;
using HotelContracts.SearchModels;
using HotelContracts.ViewModels;
namespace HotelContracts.BusinessLogicsContracts
{
public interface IHeadwaiterLogic
{
List<HeadwaiterViewModel>? ReadList(HeadwaiterSearchModel? model);
HeadwaiterViewModel? ReadElement(HeadwaiterSearchModel model);
bool Create(HeadwaiterBindingModel model);
bool Update(HeadwaiterBindingModel model);
bool Delete(HeadwaiterBindingModel model);
}
}

View File

@ -0,0 +1,15 @@
using HotelContracts.BindingModels;
using HotelContracts.SearchModels;
using HotelContracts.ViewModels;
namespace HotelContracts.BusinessLogicsContracts
{
public interface IRoomLogic
{
List<RoomViewModel>? ReadList(RoomSearchModel? model);
RoomViewModel? ReadElement(RoomSearchModel model);
bool Create(RoomBindingModel model);
bool Update(RoomBindingModel model);
bool Delete(RoomBindingModel model);
}
}