public IActionResult Get([FromServices] IPromocaoRepository repository, [FromServices] IPerfilRepository repositoryPerfil) { return(Ok(repository.Find())); }
public IEnumerable <Promocao> Find(Expression <Func <Promocao, bool> > promocao) { return(_repository.Find(promocao)); }