Ejemplo n.º 1
0
        public JsonResult ObterVisitasComercial(DateTime start, DateTime end)
        {
            FT_ManagementContext context = HttpContext.RequestServices.GetService(typeof(FT_ManagementContext)) as FT_ManagementContext;

            return(new JsonResult(context.ConverterVisitasEventos(context.ObterListaVisitas(int.Parse(this.User.Claims.First().Value), start, end)).ToList()));
        }
Ejemplo n.º 2
0
        public JsonResult ObterVisitas(DateTime start, DateTime end)
        {
            FT_ManagementContext context = HttpContext.RequestServices.GetService(typeof(FT_ManagementContext)) as FT_ManagementContext;

            return(new JsonResult(context.ConverterVisitasEventos(context.ObterListaVisitas(start, end)).ToList()));
        }