public JsonResult Add(Department dp) { return(Json(depDB.Add(dp), JsonRequestBehavior.AllowGet)); }
/// <summary> /// </summary> /// <param name="model"></param> /// <returns></returns> public int Add(Sys_Department model) { _deptDB.Add(model); return(model.DepartmentId); }