Exemplo n.º 1
0
        public IActionResult GetById(int id)
        {
            var Consumer = service.FindById(id);

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

            return(Ok(Consumer));
        }