コード例 #1
0
 public ActionResult _AddManufacturer(ManufacturerVM mManufacturerVm)
 {
     if (ModelState.IsValid)
     {
         var man = new Manufacturer();
         if (TryUpdateModel(man))
         {
             if (ExecuteRepositoryAction(() => { _svc.AddManufacturer(man); _svc.CommitChanges(); }))
             {
                 return(ReturnJsonFormSuccess());
             }
         }
     }
     return(PartialView("Edit", mManufacturerVm));
 }