using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace EMIS.ViewModel.EducationSchedule { public class ClassroomScheduleView { public Guid CoursesTimeID { get; set; } public int? StartTimes { get; set; } public int? EndTimes { get; set; } public int? StartHour { get; set; } public int? StartMinutes { get; set; } public int? EndHour { get; set; } public int? EndMinutes { get; set; } public string CoursesTimeName { get { return (StartHour ?? 0).ToString().PadLeft(2, '0') + ":" + (StartMinutes ?? 0).ToString().PadLeft(2, '0') + "-" + (EndHour ?? 0).ToString().PadLeft(2, '0') + ":" + (EndMinutes ?? 0).ToString().PadLeft(2, '0'); } } public Guid ClassroomID { get; set; } public string Monday { get; set; } public string Tuesday { get; set; } public string Wednesday { get; set; } public string Thurday { get; set; } public string Friday { get; set; } public string Saturday { get; set; } public string Sunday { get; set; } } }