using Performance.EntityModels;
using System.Collections.Generic;
using System.Linq;

public class UserInfoCenter
{
    public sys_user User { get; set; }
    public sys_role URole { get; set; }
    public List<sys_hospital> Hospitals { get; set; }
    public List<int> HospitalIds => Hospitals?.Select(w => w.ID).ToList() ?? new List<int>();

    public bool IsSecondAdmin { get; set; }
}
