public List <Schedule> getAllSchedules() { List <Schedule> schedules = data.GetAllSchedules(); foreach (Schedule s in schedules) { s.DisplayScheduleDtTime = DtTimeDisplay(s.ScheduleDtTime); s.DisplayInputDtTime = DtTimeDisplay(s.InputDtTime); } return(schedules); }