Exemplo n.º 1
0
        public async Task <IActionResult> SaveBasicConfig([FromBody] BasicConfigModel model)
        {
            if (model == null || !ModelState.IsValid)
            {
                return(InvalidRequest());
            }

            var config = await ConfigService.Get();

            Mapper.Map(model, config);

            await ConfigService.Save(config);

            return(Success());
        }
Exemplo n.º 2
0
 public Task <IActionResult> SaveBasicConfig([FromBody] BasicConfigModel model)
 {
     return(this.SaveConfigAsync(model));
 }