Edit data models and binding models
This commit is contained in:
parent
9ad3c6c139
commit
10fb0d8938
@ -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; }
|
||||
}
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace HotelContracts.BindingModels;
|
||||
|
||||
public class CleaningInstrumentsBindingModel : ICleaningInstruments
|
||||
public class CleaningInstrumentsBindingModel : ICleaningInstrumentsModel
|
||||
{
|
||||
public int Id { get; }
|
||||
public string Type { get; }
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace HotelContracts.BindingModels;
|
||||
|
||||
public class GuestBindingModel : IGuest
|
||||
public class GuestBindingModel : IGuestModel
|
||||
{
|
||||
public int Id { get; }
|
||||
public string Name { get; }
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace HotelContracts.BindingModels;
|
||||
|
||||
public class MaitreBindingModel : IMaitre
|
||||
public class MaitreModelBindingModel : IMaitreModel
|
||||
{
|
||||
public int Id { get; }
|
||||
public string Name { get; }
|
||||
|
@ -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; }
|
||||
}
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace HotelContracts.BindingModels;
|
||||
|
||||
public class RoomBindingModel : IRoom
|
||||
public class RoomModelBindingModel : IRoomModel
|
||||
{
|
||||
public int Id { get; }
|
||||
public string Type { get; }
|
||||
|
@ -1,7 +0,0 @@
|
||||
namespace HotelDataModels.Models;
|
||||
|
||||
public interface ICleaning : IId
|
||||
{
|
||||
DateTime Date { get; }
|
||||
int RoomId { get; }
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
namespace HotelDataModels.Models;
|
||||
|
||||
public interface ICleaningInstruments : IId
|
||||
public interface ICleaningInstrumentsModel : IId
|
||||
{
|
||||
string Type { get; }
|
||||
}
|
8
Hotel/HotelDataModels/Models/ICleaningModel.cs
Normal file
8
Hotel/HotelDataModels/Models/ICleaningModel.cs
Normal file
@ -0,0 +1,8 @@
|
||||
namespace HotelDataModels.Models;
|
||||
|
||||
public interface ICleaningModel : IId
|
||||
{
|
||||
DateTime Date { get; }
|
||||
int RoomId { get; }
|
||||
Dictionary<int, ICleaningInstrumentsModel> CleaningInstruments { get; }
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
namespace HotelDataModels.Models;
|
||||
|
||||
public interface IGuest : IId
|
||||
public interface IGuestModel : IId
|
||||
{
|
||||
string Name { get; }
|
||||
string SecondName { get; }
|
@ -1,6 +1,6 @@
|
||||
namespace HotelDataModels.Models;
|
||||
|
||||
public interface IMaitre : IId
|
||||
public interface IMaitreModel : IId
|
||||
{
|
||||
string Name { get; }
|
||||
string SecondName { get; }
|
@ -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; }
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
namespace HotelDataModels.Models;
|
||||
|
||||
public interface IRoom : IId
|
||||
public interface IRoomModel : IId
|
||||
{
|
||||
string Type { get; }
|
||||
int Cost { get; }
|
Loading…
Reference in New Issue
Block a user