Ejemplo n.º 1
0
        public async Task <IActionResult> Post(InputTodo value)
        {
            if (ModelState.IsValid)
            {
                var result = await _todosService.CreateForAsync(value);

                return(Ok(result));
            }
            return(this.AppBadRequest(ModelState));
        }