Example #1
0
 public ActionResult InsertEmployee(EmployeeModel newEmployee)
 {
     if (InsertData.InsertEmployee(newEmployee))
     {
         return(Json(new { success = true }, JsonRequestBehavior.DenyGet));
     }
     else
     {
         return(Json(new { success = false }, JsonRequestBehavior.DenyGet));
     }
 }