public ActionResult GetTransferList(String accountNumber) { ViewData["TransferDebit"] = _dal.SelectTransferDebitListByAccountNumber(accountNumber); ViewData["TransferCredit"] = _dal.SelectTransferCreditListByAccountNumber(accountNumber); if (ViewData["TransferDebit"] != null && ViewData["TransferCredit"] != null) { return(View("View")); } else { ViewData["TitlePage"] = "Aucun Transfert"; ViewData["ErrorMsg"] = "Nous ne trouvons pas de transferts pour ce compte"; return(View("Error")); } }