コード例 #1
0
        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"));
        }