public IActionResult Details(int?id) { if (id == null) { return(NotFound()); } var accountHolder = _accountHolderService.GetDetails(id.Value); if (accountHolder == null) { return(NotFound()); } return(View(accountHolder)); }
public IActionResult Details(int?id) { return(View(_accountHolderService.GetDetails(id.Value))); }