Exemplo n.º 1
0
        public IActionResult Get([FromRoute] int id)
        {
            var type = typeRepository.FindById(id);

            if (type == null)
            {
                return(NotFound());
            }
            return(Ok(type));
        }