Add storage
This commit is contained in:
parent
9a8f250e55
commit
983edf0994
@ -6,10 +6,6 @@
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="StoragesContracts" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\HotelDataModels\HotelDataModels.csproj" />
|
||||
</ItemGroup>
|
||||
|
@ -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);
|
||||
}
|
15
Hotel/HotelContracts/StoragesContracts/ICleaningStorage.cs
Normal file
15
Hotel/HotelContracts/StoragesContracts/ICleaningStorage.cs
Normal 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);
|
||||
}
|
15
Hotel/HotelContracts/StoragesContracts/IGuestStorage.cs
Normal file
15
Hotel/HotelContracts/StoragesContracts/IGuestStorage.cs
Normal 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);
|
||||
}
|
15
Hotel/HotelContracts/StoragesContracts/IMaitreStorage.cs
Normal file
15
Hotel/HotelContracts/StoragesContracts/IMaitreStorage.cs
Normal 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);
|
||||
}
|
@ -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);
|
||||
}
|
15
Hotel/HotelContracts/StoragesContracts/IRoomStorage.cs
Normal file
15
Hotel/HotelContracts/StoragesContracts/IRoomStorage.cs
Normal 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user