public IActionResult Index() { var result1 = _recipent.GetAllRecipents(); var recipients = result1.Result.Result.data.ToList(); var result2 = _bankAccount.GetAllBanks(); var banks = result2.Result.Result.data.ToList(); ViewBag.BANKS = banks; if (TempData["notification"] != null) { var message = (string)TempData["notification"]; var notify = (NotificationType)TempData["notifytype"]; Alert(message, notify); } return(View(recipients)); }