public ActionResult Delete(Employee employee) { try { _iFEmployee.Delete(employee); return(Json("")); } catch (Exception ex) { return(Json(ex)); } }
public JsonResult Delete(int id) { _iFEmployee.Delete(id); return(Json(string.Empty)); }