PIbd-22_Bazunov_AI_Hotel/Hotel/HotelContracts/ViewModels/RoomViewModel.cs
2023-05-19 17:52:18 +04:00

27 lines
790 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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<int, IReservationModel> Reservation { get; set; }
public string GetTypeRoom()
{
return Type switch
{
"standard" => "Стандартный",
"superior" => "Улучшенный",
"bedroom" => "Со спальной комнатой",
"apartment" => "Апартаменты/квартира",
"studio" => "Студия",
"suite" => "Люкс",
_ => ""
};
}
}