Add logic
This commit is contained in:
parent
b70c7287e1
commit
9a8f250e55
@ -2,7 +2,7 @@
|
||||
|
||||
namespace HotelContracts.BindingModels;
|
||||
|
||||
public class MaitreModelBindingModel : IMaitreModel
|
||||
public class MaitreBindingModel : IMaitreModel
|
||||
{
|
||||
public int Id { get; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace HotelContracts.BindingModels;
|
||||
|
||||
public class ReservationModelBindingModel : IReservationModel
|
||||
public class ReservationBindingModel : IReservationModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public DateTime StartDate { get; set; }
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace HotelContracts.BindingModels;
|
||||
|
||||
public class RoomModelBindingModel : IRoomModel
|
||||
public class RoomBindingModel : IRoomModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Type { get; set; }
|
||||
|
@ -0,0 +1,14 @@
|
||||
using HotelContracts.BindingModels;
|
||||
using HotelContracts.SearchModels;
|
||||
using HotelContracts.ViewModels;
|
||||
|
||||
namespace HotelContracts.BusinessLogicsContracts;
|
||||
|
||||
public interface ICleaningInstrumentsLogic
|
||||
{
|
||||
List<CleaningInstrumentsViewModel>? ReadList(CleaningInstrumentsSearchModel? model);
|
||||
CleaningInstrumentsViewModel? ReadElement(CleaningInstrumentsSearchModel model);
|
||||
bool Create(CleaningInstrumentsBindingModel model);
|
||||
bool Update(CleaningInstrumentsBindingModel model);
|
||||
bool Delete(CleaningInstrumentsBindingModel model);
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
using HotelContracts.BindingModels;
|
||||
using HotelContracts.SearchModels;
|
||||
using HotelContracts.ViewModels;
|
||||
|
||||
namespace HotelContracts.BusinessLogicsContracts;
|
||||
|
||||
public interface ICleaningLogic
|
||||
{
|
||||
List<CleaningViewModel>? ReadList(CleaningSearchModel? model);
|
||||
CleaningViewModel? ReadElement(CleaningSearchModel model);
|
||||
bool Create(CleaningBindingModel model);
|
||||
bool Update(CleaningBindingModel model);
|
||||
bool Delete(CleaningBindingModel model);
|
||||
}
|
14
Hotel/HotelContracts/BusinessLogicsContracts/IGuestLogic.cs
Normal file
14
Hotel/HotelContracts/BusinessLogicsContracts/IGuestLogic.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using HotelContracts.BindingModels;
|
||||
using HotelContracts.SearchModels;
|
||||
using HotelContracts.ViewModels;
|
||||
|
||||
namespace HotelContracts.BusinessLogicsContracts;
|
||||
|
||||
public interface IGuestLogic
|
||||
{
|
||||
List<GuestViewModel>? ReadList(GuestSearchModel? model);
|
||||
GuestViewModel? ReadElement(GuestSearchModel model);
|
||||
bool Create(GuestBindingModel model);
|
||||
bool Update(GuestBindingModel model);
|
||||
bool Delete(GuestBindingModel model);
|
||||
}
|
14
Hotel/HotelContracts/BusinessLogicsContracts/IMaitreLogic.cs
Normal file
14
Hotel/HotelContracts/BusinessLogicsContracts/IMaitreLogic.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using HotelContracts.BindingModels;
|
||||
using HotelContracts.SearchModels;
|
||||
using HotelContracts.ViewModels;
|
||||
|
||||
namespace HotelContracts.BusinessLogicsContracts;
|
||||
|
||||
public interface IMaitreLogic
|
||||
{
|
||||
List<MaitreViewModel>? ReadList(MaitreSearchModel? model);
|
||||
MaitreViewModel? ReadElement(MaitreSearchModel model);
|
||||
bool Create(MaitreBindingModel model);
|
||||
bool Update(MaitreBindingModel model);
|
||||
bool Delete(MaitreBindingModel model);
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
using HotelContracts.BindingModels;
|
||||
using HotelContracts.SearchModels;
|
||||
using HotelContracts.ViewModels;
|
||||
|
||||
namespace HotelContracts.BusinessLogicsContracts;
|
||||
|
||||
public interface IReservationLogic
|
||||
{
|
||||
List<ReservationViewModel>? ReadList(ReservationSearchModel? model);
|
||||
ReservationViewModel? ReadElement(ReservationSearchModel model);
|
||||
bool Create(ReservationBindingModel model);
|
||||
bool Update(ReservationBindingModel model);
|
||||
bool Delete(ReservationBindingModel model);
|
||||
}
|
14
Hotel/HotelContracts/BusinessLogicsContracts/IRoomLogic.cs
Normal file
14
Hotel/HotelContracts/BusinessLogicsContracts/IRoomLogic.cs
Normal file
@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user