public IActionResult BuscarPorId(int id) { GeneroDomain genero = generoRepository.BuscarPorId(id); if (genero == null) { return(NotFound()); } return(Ok(genero)); }
public GenerosDomain BuscarPorId(int id) { return(GenerosRepository.BuscarPorId(id)); }