Exemplo n.º 1
0
        //pedidos
        public IActionResult ReportePedidos()
        {
            ReportePedidosModelView model = new ReportePedidosModelView();

            model.FechaInicial = DateTime.Now;
            model.FechaFinal   = DateTime.Now;
            return(View(model));
        }
Exemplo n.º 2
0
        public IActionResult ReportePedidos(ReportePedidosModelView model)
        {
            try
            {
                model.Datos = datos.TraerReportePedidos(model.FechaInicial.Date, model.FechaFinal.Date.AddDays(1).AddMinutes(-1));
            }
            catch (Exception ex)
            {
                ViewBag.Errores = ex.Message;
            }


            return(View(model));
        }