Exemplo n.º 1
0
        public async Task <IActionResult> DeleteCode([FromRoute] Guid id)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (await _repository.DeleteAsync(id))
            {
                return(Ok());
            }
            return(BadRequest());
        }