예제 #1
0
 public ActionResult AddAppointment_Post(Appointment appointment)
 {
     try
     {
         if (ModelState.IsValid)
         {
             appointment.CreatedBy = Convert.ToInt16(Session["UserID"]);
             appointment.CreatedBy = Convert.ToInt16(Session["UserID"]);
             pr.AddPatientDetails(appointment);
             return(RedirectToAction("ListAppointment"));
         }
         else
         {
             return(View());
         }
     }
     catch (Exception exe)
     {
         throw;
     }
 }