//cotizaciones public IActionResult ReporteCotizaciones() { ReporteCotizacionesModelView model = new ReporteCotizacionesModelView(); model.FechaInicial = DateTime.Now; model.FechaFinal = DateTime.Now; return(View(model)); }
public IActionResult ReporteCotizaciones(ReporteCotizacionesModelView model) { try { model.Datos = datos.TraerReporteCotizaciones(model.FechaInicial.Date, model.FechaFinal.Date.AddDays(1).AddMinutes(-1)); } catch (Exception ex) { ViewBag.Errores = ex.Message; } return(View(model)); }