public ActionResult IndexSubmit(AppointmentForm form)
 {
     if (ModelState.IsValid)
     {
         Patient formPatient = form.Appointment.Patient;
         if (Get<IAuthorizationService>().QuickLogin(formPatient.FirstName, formPatient.LastName,
                                                     formPatient.Birthday, formPatient.Policy))
         {
             return RedirectTo<AppointmentController>(a => a.Doctors(form));
         }
         ModelState.AddModelError("LoginFalied", "Данный пользователь не зарегистрирован в системе");
     }
     return RedirectTo<AppointmentController>(a => a.Index(form));
 }
 public ActionResult Doctors(AppointmentForm form)
 {
     ViewBag.Doctors = Get<IDoctorRepository>().GetAll();
     return View(form);
 }
 public ActionResult Index(AppointmentForm form)
 {
     form.Appointment = form.Appointment ?? new Appointment{Patient = new Patient()};
     return View(form);
 }
 public ActionResult Confirm(AppointmentForm form)
 {
     return View(form);
 }