Beispiel #1
0
 public ActionResult AddDoctor_Post(Doctor doctor)
 {
     try
     {
         if (ModelState.IsValid)
         {
             doctor.CreatedBy  = 1;
             doctor.ModifiedBy = 1;
             dr.AddDoctorDetails(doctor);
             return(RedirectToAction("Doctor"));
         }
         else
         {
             return(View());
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }