Edit data models and binding models

This commit is contained in:
Viltskaa 2023-04-06 17:52:12 +04:00
parent 9ad3c6c139
commit 10fb0d8938
13 changed files with 22 additions and 18 deletions

View File

@ -2,9 +2,10 @@
namespace HotelContracts.BindingModels;
public class CleaningBindingModel : ICleaning
public class CleaningBindingModel : ICleaningModel
{
public int Id { get; }
public DateTime Date { get; }
public int RoomId { get; }
public Dictionary<int, ICleaningInstrumentsModel> CleaningInstruments { get; }
}

View File

@ -2,7 +2,7 @@
namespace HotelContracts.BindingModels;
public class CleaningInstrumentsBindingModel : ICleaningInstruments
public class CleaningInstrumentsBindingModel : ICleaningInstrumentsModel
{
public int Id { get; }
public string Type { get; }

View File

@ -2,7 +2,7 @@
namespace HotelContracts.BindingModels;
public class GuestBindingModel : IGuest
public class GuestBindingModel : IGuestModel
{
public int Id { get; }
public string Name { get; }

View File

@ -2,7 +2,7 @@
namespace HotelContracts.BindingModels;
public class MaitreBindingModel : IMaitre
public class MaitreModelBindingModel : IMaitreModel
{
public int Id { get; }
public string Name { get; }

View File

@ -2,11 +2,12 @@
namespace HotelContracts.BindingModels;
public class ReservationBindingModel : IReservation
public class ReservationModelBindingModel : IReservationModel
{
public int Id { get; }
public DateTime StartDate { get; }
public DateTime EndDate { get; }
public int GuestId { get; }
public int MaitreId { get; }
public Dictionary<int, IRoomModel> ReservationsRooms { get; }
}

View File

@ -2,7 +2,7 @@
namespace HotelContracts.BindingModels;
public class RoomBindingModel : IRoom
public class RoomModelBindingModel : IRoomModel
{
public int Id { get; }
public string Type { get; }

View File

@ -1,7 +0,0 @@
namespace HotelDataModels.Models;
public interface ICleaning : IId
{
DateTime Date { get; }
int RoomId { get; }
}

View File

@ -1,6 +1,6 @@
namespace HotelDataModels.Models;
public interface ICleaningInstruments : IId
public interface ICleaningInstrumentsModel : IId
{
string Type { get; }
}

View File

@ -0,0 +1,8 @@
namespace HotelDataModels.Models;
public interface ICleaningModel : IId
{
DateTime Date { get; }
int RoomId { get; }
Dictionary<int, ICleaningInstrumentsModel> CleaningInstruments { get; }
}

View File

@ -1,6 +1,6 @@
namespace HotelDataModels.Models;
public interface IGuest : IId
public interface IGuestModel : IId
{
string Name { get; }
string SecondName { get; }

View File

@ -1,6 +1,6 @@
namespace HotelDataModels.Models;
public interface IMaitre : IId
public interface IMaitreModel : IId
{
string Name { get; }
string SecondName { get; }

View File

@ -1,9 +1,10 @@
namespace HotelDataModels.Models;
public interface IReservation : IId
public interface IReservationModel : IId
{
DateTime StartDate { get; }
DateTime EndDate { get; }
int GuestId { get; }
int MaitreId { get; }
Dictionary<int, IRoomModel> ReservationsRooms { get; }
}

View File

@ -1,6 +1,6 @@
namespace HotelDataModels.Models;
public interface IRoom : IId
public interface IRoomModel : IId
{
string Type { get; }
int Cost { get; }