コード例 #1
0
        public ActionResult Create(int id)
        {
            var assignment = _assignmentsService.GetAssignmentByID(id);
            var viewModel  = new AssignmentProjectViewModel()
            {
                AssignmentID   = assignment.ID,
                AssignmentName = assignment.AssignmentName,
                Deadline       = assignment.Deadline
            };

            return(View(viewModel));
        }
コード例 #2
0
        public ActionResult Details(int id)
        {
            var viewModel = _service.GetAssignmentByID(id);

            return(View(viewModel));
        }