Exemplo n.º 1
0
        /// <summary>
        /// Gets Skill values using SkillName
        /// </summary>
        /// <param name="skillName"></param>
        /// <returns></returns>
        public ActionResult Edit(string skillName, int page)
        {
            //Pass current page to edit view
            ViewBag.CurrentPage = page;

            if (skillName == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            //Skill values returned from GetBySkillName is assigned to skillView
            SkillViewModel skillView = _skillService.GetBySkillName(skillName).ToViewModel();

            if (skillView == null)
            {
                return(HttpNotFound());
            }
            return(View(skillView));
        }