27 lines
790 B
C#
Raw Permalink Normal View History

2023-04-06 18:03:48 +04:00
using System.ComponentModel;
using HotelDataModels.Models;
namespace HotelContracts.ViewModels;
public class RoomViewModel : IRoomModel
{
public int Id { get; set; }
2023-05-19 17:52:18 +04:00
public string Type { get; set; }
2023-04-06 18:03:48 +04:00
public double Cost { get; set; }
2023-05-19 17:52:18 +04:00
public bool IsReserved { get; set; }
public Dictionary<int, IReservationModel> Reservation { get; set; }
public string GetTypeRoom()
{
return Type switch
{
"standard" => "Стандартный",
"superior" => "Улучшенный",
"bedroom" => "Со спальной комнатой",
"apartment" => "Апартаменты/квартира",
"studio" => "Студия",
"suite" => "Люкс",
_ => ""
};
}
2023-04-06 18:03:48 +04:00
}