Ejemplo n.º 1
0
 public ResponseStatus GetFamilys(HttpRequestBase req, Paginate paginate, Container_List_Family conta_Family)
 {
     return service.GetMuti(req,
         ()=>new FamilyDAL(),
         conta_Family.List_Family,
         paginate);
 }
Ejemplo n.º 2
0
 public ActionResult Details(int? curpage,string msg)
 {
     paginate.CurrentPage = curpage == null ? 1 : (int)curpage;
     conta_List_Family = new Container_List_Family();
     conta_List_Family.List_Family = new List<Family>();
     resp = familyService.GetFamilys(Request, paginate, conta_List_Family);
     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_Family.paginate = paginate;
             conta_List_Family.msg = msg;
             conta_List_Family.isAdd = auth.isAdd;
             conta_List_Family.isDelete = auth.isDelete;
             conta_List_Family.isUpdate = auth.isUpdate;
             conta_List_Family.isVisit = auth.isVisit;
             return View(conta_List_Family);
         });
 }