// GET: OldCharts/Delete/5 public ActionResult Delete(int id) { UserData userData = _chartRepository.FindUserData(id); if (userData == null) { return(HttpNotFound()); } return(View(userData)); }