示例#1
0
 public IActionResult Create(Setting setting)
 {
     if (ModelState.IsValid)
     {
         _settingService.Create(setting);
         _settingService.Commit();
         return(RedirectToAction("Index"));
     }
     return(View(setting));
 }