Ejemplo n.º 1
0
 public ActionResult List(GridCommand command, BranchGroupListModel model)
 {
     var branchGroups = _branchService.GetAllBranchGroups(model.SearchBranchGroupName,
         command.Page - 1, command.PageSize);
     var gridModel = new GridModel<BranchGroupModel>
     {
         Data = branchGroups.Select(x =>
         {
             var categoryModel = x.ToModel();
             categoryModel.Breadcrumb = x.GetFormattedBreadCrumb(_branchService);
             return categoryModel;
         }),
         Total = branchGroups.TotalCount
     };
     return new JsonResult
     {
         Data = gridModel
     };
 }
Ejemplo n.º 2
0
 public ActionResult List()
 {
     var model = new BranchGroupListModel();
     return View(model);
 }