public ResponseStatus GetImportantEvents(HttpRequestBase req, Paginate paginate, Container_List_ImportantEvent conta_ImportantEvent) { return service.GetMuti(req, () => new ImportantEventDAL(), conta_ImportantEvent.List_ImportantEvent, paginate); }
public ActionResult Details(int? curpage, string msg) { paginate.CurrentPage = curpage == null ? 1 : (int)curpage; conta_List_ImportantEvent = new Container_List_ImportantEvent(); conta_List_ImportantEvent.List_ImportantEvent = new List<ImportantEvent>(); resp = importantEventService.GetImportantEvents(Request, paginate, conta_List_ImportantEvent); 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_ImportantEvent.paginate = paginate; conta_List_ImportantEvent.msg = msg; conta_List_ImportantEvent.isAdd = auth.isAdd; conta_List_ImportantEvent.isDelete = auth.isDelete; conta_List_ImportantEvent.isUpdate = auth.isUpdate; conta_List_ImportantEvent.isVisit = auth.isVisit; return View(conta_List_ImportantEvent); }); }