public ActionResult Create([Bind(Exclude = "TaskAssignmentID")] TaskAssignment newTaskAssignment) { if (!ModelState.IsValid) { return(View()); } try { _dataModel.AddToTaskAssignments(newTaskAssignment); _dataModel.SaveChanges(); return(RedirectToAction("Index", "Task")); } catch { return(RedirectToAction("Index", "Task")); } }