public RedirectToRouteResult Delete(SkillProfile skillProfile, string skillPath) { UserSkill skillToDelete = skillProfile.Find(s => s.GetSkillPath(skillProfile).Equals(skillPath)); UserSkill parentSkill = skillProfile.Find(s => s.Id.Equals(skillToDelete.ParentId)); skillProfile.Remove(skillToDelete); return RedirectToAction("Index", "SkillProfile", new { skillPath = parentSkill.GetSkillPath(skillProfile)}); }