コード例 #1
0
 public IActionResult Get([FromServices] IPromocaoRepository repository, [FromServices] IPerfilRepository repositoryPerfil)
 {
     return(Ok(repository.Find()));
 }
コード例 #2
0
 public IEnumerable <Promocao> Find(Expression <Func <Promocao, bool> > promocao)
 {
     return(_repository.Find(promocao));
 }