public async Task <ActionResult> EditAssignmentAnswer(AssignmentAnswer model, int id) { if (ModelState.IsValid) { model.DateModified = DateTime.UtcNow.AddHours(1); await _assignmentService.EditAnswer(model); TempData["success"] = "Submitted Successful"; return(RedirectToAction("Assignment")); } TempData["error"] = "Unable to Save"; return(View(model)); }