Exemplo n.º 1
0
        // 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));
        }
Exemplo n.º 2
0
        public ActionResult Delete(int competencyId)
        {
            //look up a student in the db
            Competency competency = competenciesRepository.Find(competencyId);

            return(View(competency));
        }