public ActionResult OnPost() { if (!ModelState.IsValid) { return(Page()); } _configurationReader.Update(new UpdateConfigurationDTO { Id = Configuration.Id, Type = Configuration.Type, Value = Configuration.Value, IsActive = Configuration.IsActive }); return(RedirectToPage("Index")); }