// GET: Trainers/Details/5 public IActionResult Details(int id) { var trainer = _iTrainerManager.GetById(id); if (trainer == null) { return(NotFound()); } return(View(trainer)); }
public IActionResult Details(long?id) { if (id == null) { return(NotFound()); } var trainers = _iTrainerManager.GetById(id); if (trainers == null) { return(NotFound()); } return(View(trainers)); }