private void FillAppointmentViewModel(AppointmentsViewModel model) { model.TodaysAppointments = _appointmentsService.GetTodaysAppointments(CurrentUserType, CurrentUserId); model.AllAppointments = _appointmentsService.GetAllAppointmentsIncludingPatientAndStaff(CurrentUserType, CurrentUserId).Where(a => a.Status == Status.ACCEPTED).ToList(); model.ShowAddAppointmentButton = IsCurrentUserStaff; model.IsStaff = IsCurrentUserStaff; }