Exemplo n.º 1
0
        public async Task <IActionResult> Get(int id)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var tax = await _taxService.FindAsync(id);

            if (tax == null)
            {
                return(NotFound());
            }

            return(Ok(tax));
        }