コード例 #1
0
        //cotizaciones
        public IActionResult ReporteCotizaciones()
        {
            ReporteCotizacionesModelView model = new ReporteCotizacionesModelView();

            model.FechaInicial = DateTime.Now;
            model.FechaFinal   = DateTime.Now;
            return(View(model));
        }
コード例 #2
0
        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));
        }