コード例 #1
0
 public ActionResult Create(ProductType producttype)
 {
     if (ModelState.IsValid)
     {
         producttypeRepository.InsertOrUpdate(producttype);
         producttypeRepository.Save();
         return(RedirectToAction("Index"));
     }
     else
     {
         return(View());
     }
 }