public ActionResult TaskSolutions(int TaskId) { TaskModel task = new TaskModel(); CourseServices service = new CourseServices(); task = service.GetTask(TaskId); List <SolutionModel> solutions = new List <SolutionModel>(); solutions = service.GetSolutions(TaskId); return(View(solutions)); }