public ActionResult SavedDepartments(DeptDTO DepartmentObj) { IDeptBL _IDeptBL = new DeptBL(); long DeptID = _IDeptBL.SaveDepartment(DepartmentObj); return(new JsonResult() { JsonRequestBehavior = JsonRequestBehavior.AllowGet, Data = DeptID }); }
public ActionResult GetDepartment(int DeptId) { IDeptBL _IDeptBL = new DeptBL(); List <DeptDTO> _DeptList = _IDeptBL.GetDepartment(DeptId); return(new JsonResult() { JsonRequestBehavior = JsonRequestBehavior.AllowGet, Data = _DeptList }); }