Пример #1
0
        public IActionResult BuscarPorId(int id)
        {
            GeneroDomain genero = generoRepository.BuscarPorId(id);

            if (genero == null)
            {
                return(NotFound());
            }
            return(Ok(genero));
        }
Пример #2
0
 public GenerosDomain BuscarPorId(int id)
 {
     return(GenerosRepository.BuscarPorId(id));
 }