Beispiel #1
0
 public ActionResult CreateEmployee(Employee objEmp)
 {
     try {
         da = new DataAccess();
         da.CreateEmployee(objEmp);
         return Json(new { IsDataInserted = true }, JsonRequestBehavior.AllowGet);
     }
     catch (Exception ex) {
         return Json(new { IsDataInserted = false, Message = ex.Message }, JsonRequestBehavior.AllowGet);
     }
 }