Example #1
0
 public async Task <IActionResult> OnPostSaveSiteName()
 {
     _options.SaveOption(new SiteSettings {
         Name = SiteName
     });
     _options.Value.Name = SiteName;
     return(Redirect("Settings"));
 }