public Doctor CreateDoctor(Doctor doctor) { try { return(doctorDAO.CreateDoctor(doctor)); } catch (Exception) { throw; } }
public ActionResult Create(doctor model) { try { doctorDAO.CreateDoctor(model); return(RedirectToAction("Index")); } catch (Exception ex) { } return(RedirectToAction("Index")); }