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
     };
 }
 public ActionResult List()
 {
     var model = new BranchGroupListModel();
     return View(model);
 }