// GET: RegistroDeFluxo/Create public ActionResult Create() { ViewBag.CarroId = new SelectList(_businessCarro.GetAll(), "Id", "Placa"); ViewBag.FaturamentoId = new SelectList(_businessFaturamento.GetAll(), "Id", "Id"); ViewBag.OperadorId = new SelectList(_businessOperador.GetAll(), "Id", "Nome"); return(View()); }
// GET: Faturamento public ActionResult Index() { //var faturamentos = db.Faturamentos.Include(f => f.Empresa); return(View(_businessFaturamento.GetAll())); }