Esempio n. 1
0
 public ActionResult <AppSettingViewModel> Post(AppSettingViewModel setting)
 {
     if (ModelState.IsValid)
     {
         return(Ok(appSettingService.AddSetting(setting)));
     }
     else
     {
         return(BadRequest(ModelState));
     }
 }