/// <summary> /// IAction method for removing a learning outcome /// </summary> /// <param name="id">Id for a concentration</param> /// <returns></returns> public IActionResult RemoveLearningOutcome(int learningOutcomeId, int courseId) { try { var lo = context.ReadOutcome(learningOutcomeId); var course = context.ReadCourse(courseId); context.RemoveLOFromACourse(lo, course); } catch (Exception ex) { return(Content(ex.ToString())); } return(RedirectToAction("Details", new { id = courseId })); }