public ActionResult Create(FormCollection collection) { try { DispatchModel form = new DispatchModel(); TryUpdateModel <DispatchModel>(form, collection.ToValueProvider()); int rowsAffected = DispatchDAO.Insert(form); return(RedirectToAction("Index")); } catch { return(RedirectToAction("Create")); } }