// GET: Competencies/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Competency competency = competenciesRepository.Find(id.Value); if (competency == null) { return(HttpNotFound()); } return(View(competency)); }
public ActionResult Delete(int competencyId) { //look up a student in the db Competency competency = competenciesRepository.Find(competencyId); return(View(competency)); }