2024-03-09 21:44:01 +04:00
|
|
|
|
using HotelDataModels.Models;
|
2024-03-23 18:43:34 +04:00
|
|
|
|
using Newtonsoft.Json;
|
2024-03-10 00:15:58 +04:00
|
|
|
|
using System.ComponentModel;
|
2024-03-09 21:44:01 +04:00
|
|
|
|
|
|
|
|
|
namespace HotelContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class ConferenceBookingViewModel : IConferenceBookingModel
|
|
|
|
|
{
|
|
|
|
|
public int ConferenceId { get; set; }
|
|
|
|
|
public int HeadwaiterId { get; set; }
|
|
|
|
|
public int Id { get; set; }
|
2024-03-10 00:15:58 +04:00
|
|
|
|
|
|
|
|
|
[DisplayName("Дата начала конференции")]
|
|
|
|
|
public DateTime? BookingDate { get; set; }
|
|
|
|
|
|
|
|
|
|
public string ConfName { get; set; } = string.Empty;
|
|
|
|
|
public string NameHall { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
public Dictionary<int, ILunchModel> ConferenceBookingLunches { get; set; }
|
2024-03-23 18:43:34 +04:00
|
|
|
|
|
|
|
|
|
public Dictionary<int, IConferenceBookingModel> ConferenceConferenceBookings { get; set; } = new();
|
|
|
|
|
public ConferenceBookingViewModel() { }
|
|
|
|
|
|
|
|
|
|
[JsonConstructor]
|
|
|
|
|
public ConferenceBookingViewModel(Dictionary<int, LunchViewModel> ConferenceBookingDinners, Dictionary<int, ConferenceBookingViewModel> ConferenceConferenceBookings)
|
|
|
|
|
{
|
|
|
|
|
this.ConferenceBookingLunches = ConferenceBookingDinners.ToDictionary(x => x.Key, x => x.Value as ILunchModel);
|
|
|
|
|
this.ConferenceConferenceBookings = ConferenceConferenceBookings.ToDictionary(x => x.Key, x => x.Value as IConferenceBookingModel);
|
|
|
|
|
}
|
2024-03-09 21:44:01 +04:00
|
|
|
|
}
|
|
|
|
|
}
|