public Cotacao Get( [FromServices] CotacoesContext context, string id) { return(context.Cotacoes .Where(c => c.Sigla == id) .FirstOrDefault()); }
public CotacoesController(CotacoesContext context) { this._context = context; }
public Cotacao Get( [FromServices] CotacoesContext context, string id) { return(context.Cotacoes .Where(c => c.Sigla == id) .FirstOrDefault()); }
public CotacoesController(CotacoesContext context) { this._context = context; }