public ActionResult Create(ManualTypeCreate manualTypeCreate) { ModelState.Merge(manualTypeCreate.Validate(Db)); if (ModelState.IsValid) { ManualType manualType = manualTypeCreate.GetModel(); ManualTypeCache.Insert(Db, manualType); return RedirectToAction("Index"); } return View(manualTypeCreate); }
public ActionResult Create() { var manualTypeCreate = new ManualTypeCreate(); return View(manualTypeCreate); }