// GET: HistorialMoneda
        public ActionResult Index()
        {
            DateTime orderDate = DateTime.Now.AddDays(-1);
            IList <HistorialMonedaViewModel> historial = new List <HistorialMonedaViewModel>();

            historial = HistorialService.GetAllByFecha(orderDate);
            return(View(historial));
        }
Esempio n. 2
0
        public ActionResult BuscarByFecha(DateTime fecha)

        {
            var ids = User.Claims.FirstOrDefault(x => x.Type == ClaimTypes.NameIdentifier)?.Value;



            IList <HistorialMonedaViewModel> historial = new List <HistorialMonedaViewModel>();

            historial = historialService.GetAllByFecha(fecha);

            ViewBag.fecha      = fecha;
            ViewData["fechas"] = historial;
            ViewBag.estado     = 1;
            return(View(historial));
        }