// GET: Payments/Details/5 public IActionResult Details(long?id) { if (id == null) { return(NotFound()); } var payment = _appService.GetById(id.Value); if (payment == null) { return(NotFound()); } return(View(payment)); }