Add storage

This commit is contained in:
Viltskaa 2023-04-06 18:26:46 +04:00
parent 9a8f250e55
commit 983edf0994
7 changed files with 90 additions and 4 deletions

View File

@ -6,10 +6,6 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<Folder Include="StoragesContracts" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\HotelDataModels\HotelDataModels.csproj" />
</ItemGroup>

View File

@ -0,0 +1,15 @@
using HotelContracts.BindingModels;
using HotelContracts.SearchModels;
using HotelContracts.ViewModels;
namespace HotelContracts.StoragesContracts;
public interface ICleaningInstrumentsStorage
{
List<CleaningInstrumentsViewModel> GetFullList();
List<CleaningInstrumentsViewModel> GetFilteredList(CleaningInstrumentsSearchModel model);
CleaningInstrumentsViewModel? GetElement(CleaningInstrumentsSearchModel model);
CleaningInstrumentsViewModel? Insert(CleaningInstrumentsBindingModel model);
CleaningInstrumentsViewModel? Update(CleaningInstrumentsBindingModel model);
CleaningInstrumentsViewModel? Delete(CleaningInstrumentsBindingModel model);
}

View File

@ -0,0 +1,15 @@
using HotelContracts.BindingModels;
using HotelContracts.SearchModels;
using HotelContracts.ViewModels;
namespace HotelContracts.StoragesContracts;
public interface ICleaningStorage
{
List<CleaningViewModel> GetFullList();
List<CleaningViewModel> GetFilteredList(CleaningSearchModel model);
CleaningViewModel? GetElement(CleaningSearchModel model);
CleaningViewModel? Insert(CleaningBindingModel model);
CleaningViewModel? Update(CleaningBindingModel model);
CleaningViewModel? Delete(CleaningBindingModel model);
}

View File

@ -0,0 +1,15 @@
using HotelContracts.BindingModels;
using HotelContracts.SearchModels;
using HotelContracts.ViewModels;
namespace HotelContracts.StoragesContracts;
public interface IGuestStorage
{
List<GuestViewModel> GetFullList();
List<GuestViewModel> GetFilteredList(GuestSearchModel model);
GuestViewModel? GetElement(GuestSearchModel model);
GuestViewModel? Insert(GuestBindingModel model);
GuestViewModel? Update(GuestBindingModel model);
GuestViewModel? Delete(GuestBindingModel model);
}

View File

@ -0,0 +1,15 @@
using HotelContracts.BindingModels;
using HotelContracts.SearchModels;
using HotelContracts.ViewModels;
namespace HotelContracts.StoragesContracts;
public interface IMaitreStorage
{
List<MaitreViewModel> GetFullList();
List<MaitreViewModel> GetFilteredList(MaitreSearchModel model);
MaitreViewModel? GetElement(MaitreSearchModel model);
MaitreViewModel? Insert(MaitreBindingModel model);
MaitreViewModel? Update(MaitreBindingModel model);
MaitreViewModel? Delete(MaitreBindingModel model);
}

View File

@ -0,0 +1,15 @@
using HotelContracts.BindingModels;
using HotelContracts.SearchModels;
using HotelContracts.ViewModels;
namespace HotelContracts.StoragesContracts;
public interface IReservationStorage
{
List<ReservationViewModel> GetFullList();
List<ReservationViewModel> GetFilteredList(ReservationSearchModel model);
ReservationViewModel? GetElement(ReservationSearchModel model);
ReservationViewModel? Insert(ReservationBindingModel model);
ReservationViewModel? Update(ReservationBindingModel model);
ReservationViewModel? Delete(ReservationBindingModel model);
}

View File

@ -0,0 +1,15 @@
using HotelContracts.BindingModels;
using HotelContracts.SearchModels;
using HotelContracts.ViewModels;
namespace HotelContracts.StoragesContracts;
public interface IRoomStorage
{
List<RoomViewModel> GetFullList();
List<RoomViewModel> GetFilteredList(RoomSearchModel model);
RoomViewModel? GetElement(RoomSearchModel model);
RoomViewModel? Insert(RoomBindingModel model);
RoomViewModel? Update(RoomBindingModel model);
RoomViewModel? Delete(RoomBindingModel model);
}