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