Создание и заполнение BindingModel

This commit is contained in:
Кашин Максим 2023-04-01 18:54:35 +04:00
parent a8899463d7
commit e7ce082fab
4 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,13 @@
using HotelDataModels.Models;
namespace HotelContracts.BindingModels
{
public class ConferenceBookingBindingModel : IConferenceBookingModel
{
public int HeadwaiterId { get; set; }
public int ConferenceId { get; set; }
public int Id { get; set; }
}
}

View File

@ -0,0 +1,15 @@
using HotelDataModels.Models;
namespace HotelContracts.BindingModels
{
public class DinnerBindingModel : IDinnerModel
{
public string DinnerName { get; set; }
public double DinnetPrice { get; set; }
public int HeadwaiterId { get; set; }
public int Id { get; set; }
}
}

View File

@ -0,0 +1,19 @@
using HotelDataModels.Models;
namespace HotelContracts.BindingModels
{
public class HeadwaiterBindingModel : IHeadwaiterModel
{
public string HeadwaiterFIO { get; set; }
public string HeadwaiterPassword { get; set; }
public string HeadwaiterLogin { get; set; }
public string HeadwaiterEmail { get; set; }
public string HeadwaiterNumber { get; set; }
public int Id { get; set; }
}
}

View File

@ -0,0 +1,19 @@
using HotelDataModels.Models;
namespace HotelContracts.BindingModels
{
public class RoomBindingModel : IRoomModel
{
public string RoomName { get; set; }
public string RoomFrame { get; set; }
public double RoomPrice { get; set; }
public int HeadwaiterId { get; set; }
public int MealPlanId { get; set; }
public int Id { get; set; }
}
}