Пример #1
0
        public IActionResult AssignAssignment()
        {
            List <Assignment> assignments = _assignmentService.All();
            List <Course>     courses     = _courseService.All();
            var model = new AssignViewModel {
                AssignmentList = assignments, CourseList = courses
            };

            return(View(model));
        }
 public IActionResult Index()
 {
     return(View(_assignmentService.All()));
 }