public ActionResult AssignCourseToAllDrivers(DriverLinkCourseModel assignment) { try { int results = linkDriverCourseAdapter.AssignCourseToAllDrivers(assignment.SelectedCourseId, assignment.SelectedPriorityId, assignment.Assigned_Datetime, assignment.Due_Date); if (results == 0) { Log.Info($"Unable to Assign {assignment.Course.Title} to all drivers in LinkDriverCourseController -- results == {results}"); return(View("~/Views/Error/EnterAllInfoError.cshtml")); } return(RedirectToAction("SelectAllAssignedCourses")); } catch { Log.Info($"Unable to Assign course to all drivers in LinkDriverCourseController"); return(View("~/Views/Error/EnterAllInfoError.cshtml")); } }