public HttpResponseMessage GetCombustiveis() { CombustivelDal d = new CombustivelDal(); var result = d.Listar().OrderBy(m => m.Nome); return(Request.CreateResponse(HttpStatusCode.OK, result)); }
public VeiculosController() { veiculoDal = new VeiculoDal(); combustivelDal = new CombustivelDal(); tipoDal = new TipoDal(); anoModeloDal = new AnoModeloDal(); marcaDal = new MarcaDal(); arquivoDal = new ArquivoDal(); }