Example #1
0
 public ActionResult EditAssignment(AssignmentViewModel model)
 {
     if (ModelState.IsValid)
     {
         ModelState.Clear();
         TS.EditAssignment(model);
         return(RedirectToAction("StudentAssignments", "User", new { id = model.ID }));
     }
     model.UserModel = US.GetUserOverviewByUserName(User.Identity.GetUserName(), model.CourseID);
     return(View(model));
 }