Exemplo n.º 1
0
        public async Task <IActionResult> AddItem(Item model)
        {
            if (model == null)
            {
                return(BadRequest());
            }
            var _item = await _repo.AddItemAsync(model);

            if (_item != null)
            {
                return(Ok());
            }
            return(BadRequest());
        }