Exemple #1
0
        public ActionResult SavedDepartments(DeptDTO DepartmentObj)
        {
            IDeptBL _IDeptBL = new DeptBL();
            long    DeptID   = _IDeptBL.SaveDepartment(DepartmentObj);

            return(new JsonResult()
            {
                JsonRequestBehavior = JsonRequestBehavior.AllowGet,
                Data = DeptID
            });
        }
Exemple #2
0
        public ActionResult GetDepartment(int DeptId)
        {
            IDeptBL        _IDeptBL  = new DeptBL();
            List <DeptDTO> _DeptList = _IDeptBL.GetDepartment(DeptId);

            return(new JsonResult()
            {
                JsonRequestBehavior = JsonRequestBehavior.AllowGet,
                Data = _DeptList
            });
        }