public IHttpActionResult setDefaultBank(Guid CustomerId, Guid UserId, Guid BankId) { objService = new BankSelectionService(); var result = objService.setDefaultBank(CustomerId, UserId, BankId); return(Ok(result)); }
public async Task <ActionResult> Index() { var bankId = Request.Form["Items"]; System.Web.HttpContext.Current.Session["IdBank"] = bankId; BankSelectionService model = new BankSelectionService(); var banks = await model.GetBanks(bankId.ToLower()); return(View(banks)); }