示例#1
0
    public static List <ChartingHomeResponse> ChartDataRequest()
    {
        HomePageController homePageControl = new HomePageController();

        Page   page    = new Page();
        string site    = page.User.Identity.GetUserId();
        var    results = homePageControl.grabData(homePageControl.getSite(site));

        return(results);
    }
示例#2
0
    public static List <ChartingHomeResponse> PercentileDataRequest(int siteId, DateTime fromDate, DateTime toDate)
    {
        HomePageController homePageControl = new HomePageController();
        UserManager        userManager     = new UserManager();

        if (siteId == -1)
        {
            Page page = new Page();
            siteId = userManager.GetUserSiteId(page.User.Identity.Name);
        }
        var results = homePageControl.grabData(siteId, fromDate, toDate);

        return(results);
    }