1
0
mirror of https://github.com/SirLecram/HospitalServerManager synced 2024-08-16 18:02:40 +02:00
admissionManager/ViewModel/RoomViewModel.cs

34 lines
705 B
C#
Raw Normal View History

using HospitalServerManager.InterfacesAndEnums;
using HospitalServerManager.Model.Basic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalServerManager.ViewModel
{
class RoomViewModel : IPrimaryKeyGetable
{
private Room model;
public string PrimaryKey { get => model.PrimaryKey; }
public int PlacesNumber { get => model.PlacesNumber; }
public bool IsSpecialCare { get => model.IsSpecialCare; }
public RoomViewModel(Room model)
{
this.model = model;
}
public string GetPrimaryKey()
{
return PrimaryKey;
}
public string GetPrimaryKeyName()
{
return model.PrimaryKeyName;
}
}
}