public ActionResult Index(string message = "") { ViewBag.ErrorMessage = message; BankListModel model = new BankListModel(); model.SOBId = SessionHelper.SOBId; return(View(model)); }
public IActionResult BankList(int page = 1, int size = 20, string keyword = null, bool?status = null) { var model = new BankListModel(); model.Keyword = keyword; model.Banks = DefaultStorage.BankPagedList(page, size, keyword, status); return(View(model)); }
public ActionResult List() { var model = new BankListModel(); model.BankList = new GridModel <BankModel>(); model.BankList.Data = _customerService.GetCustomersByCustomerRoleId(_customerService.GetCustomerRoleBySystemName("Sellers").Id) .Select(x => new BankModel() { Id = x.Id, Email = x.Email, BankTitle = x.CompanyName, PictureId = x.ProviderLogoId.HasValue ? x.ProviderLogoId.Value: 0, LogoUrl = x.ProviderLogoId.HasValue ? _pictureService.GetPictureUrl(x.ProviderLogoId.Value, 100) : null, Rating = x.Rating ?? 0 }).ToList(); model.BankList.Total = model.BankList.Data.Count(); return(View(model)); }