public ActionResult Index() { var model = QueryStackWorkerService.GetAllBankAccounts(); ViewBag.User = _user; return(View(model)); }
public ActionResult Index(string Account) { if (string.IsNullOrWhiteSpace(Account) || Account.Equals("Please choose a customer")) { var model = QueryStackWorkerService.GetAllBankAccounts(); ViewBag.User = _user; return(View(model)); } return(RedirectToAction("Details", new { id = new Guid(Account) })); }