public async Task <ActionResult <List <QuadroModel> > > Get([FromServices] RhNetContext rhNetContext) { QuadroRepository repository = new QuadroRepository(); return(await repository.Get(rhNetContext)); }
public async Task <IHttpActionResult> Get() { return(Ok(await repository.Get(rhNetContext))); }