public IActionResult AssignmentView(int assignmentId, AssignmentSubmit assignmentSubmit) { Assignment assignmentDb = _appDbContext.Assignments.Where(a => a.id == assignmentId).SingleOrDefault(); var assignmentSubmitVM = new AssignmentSubmitViewModel { AssignmentSubmit = assignmentSubmit, Assignment = assignmentDb }; return(View(assignmentSubmitVM)); }