Exemplo n.º 1
0
        public async Task <IActionResult> FindById(int id)
        {
            var item = await formatService.FindByIdAsync(id);

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

            return(new ObjectResult(item));
        }