public async Task <IActionResult> Index() { var gEPAMEContext = new LN_Utilidades().GetTopIncidences(_context); ViewData["Vehicle"] = new LN_Utilidades().GetActiveVehicles(_context); return(View(await gEPAMEContext.ToListAsync())); }
private string GetSiguienteID(string tipoIncidencia) { string id = ""; id = new LN_Utilidades().GetSiguienteIDIncidencia(_context, tipoIncidencia); return(id); }
public async Task <IActionResult> IndexVehicle() { var gEPAMEContext = new LN_Utilidades().GetActiveVehicles(_context); return(PartialView(await gEPAMEContext.ToListAsync())); }