Exemplo n.º 1
0
        public async Task Execute(AppConfigArgs args)
        {
            var e = new AppConfigContentEntity
            {
                Release = args.Release
            };
            await _Formatter.Fill(e, args.ToContent());

            await _DbContext.AddAsync(e);
        }
        public async Task <IActionResult> Execute(AppConfigArgs args)
        {
            if (!_Validator.Valid(args))
            {
                return(new BadRequestResult());
            }

            await _InsertDbCommand.Execute(args);

            _Context.SaveAndCommit();
            return(new OkResult());
        }