コード例 #1
0
 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));
 }
コード例 #2
0
 public ActionResult Doctors(AppointmentForm form)
 {
     ViewBag.Doctors = Get<IDoctorRepository>().GetAll();
     return View(form);
 }
コード例 #3
0
 public ActionResult Index(AppointmentForm form)
 {
     form.Appointment = form.Appointment ?? new Appointment{Patient = new Patient()};
     return View(form);
 }
コード例 #4
0
 public ActionResult Confirm(AppointmentForm form)
 {
     return View(form);
 }