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