예제 #1
0
        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);
        }
예제 #2
0
 public ActionResult Create()
 {
     var manualTypeCreate = new ManualTypeCreate();
     return View(manualTypeCreate);
 }