private AppointmentResultViewModel GetAppointmentResultViewModel(Guid schedId) { var sched = scheduleService.GetSchedule(schedId); var patient = patientService.GetPatient(sched.PatientId); return(new AppointmentResultViewModel() { SchedId = schedId, Patient = patient, AppointmentDate = sched.Date, ConclusionId = conclusionService.GetConclusionBySched(schedId).Id, PatientDatas = patientDataService.GetBySchedId(schedId) }); }