public ResponseStatus GetDepartments(HttpRequestBase req,Container_List_Department conta_Department) { return service.GetMuti(req, ()=>new DepDAL(), conta_Department.List_Dep, null); }
public ActionResult Details(string msg) { conta_List_Department = new Container_List_Department(); conta_List_Department.message = msg; conta_List_Department.List_Dep = new List<Department>(); resp = departmentService.GetDepartments(Request, conta_List_Department); Container_Authority_Msg auth = new Container_Authority_Msg(); ResponseStatus resp1 = ServiceBuilder.BuildAuthService().GetSecondAuth(Request.Cookies, auth); if (resp1 == ResponseStatus.FAILED) resp = resp1; return this.JudgeResult(resp, () => { conta_List_Department.isAdd = auth.isAdd; conta_List_Department.isDelete = auth.isDelete; conta_List_Department.isUpdate = auth.isUpdate; conta_List_Department.isVisit = auth.isVisit; return View(conta_List_Department); }); }