コード例 #1
0
 public IActionResult AdminSetting(AdminSettingVM viewModel)
 {
     if (!ModelState.IsValid)
     {
         return(View(viewModel));
     }
     else
     {
         context.UpdateAdmin(viewModel);
         return(RedirectToAction(nameof(AdminController.AdminSetting)));
     }
 }