public PieChartData GetPieChartDataActiveUsersWithoutMonthAndDay(int projectId, long filterCode) { var ageActiveUsers = this.searchService.GetAgeActiveUsers(projectId, filterCode, true); AgeInformation genderInformation = AgeInformation.Create(ageActiveUsers); return(this.GetPieChartData(genderInformation)); }
public PieChartData GetPieChartDataActiveUsers(int projectId, IList <ActiveUserInfo> usersList) { var ageActiveUsers = this.searchService.GetAgeActiveUsers(projectId, usersList, false); AgeInformation genderInformation = AgeInformation.Create(ageActiveUsers); return(this.GetPieChartData(genderInformation)); }
public AgeInformation GetAgeInformation(int projectId) { using (this.unitOfWorkProvider.CreateUnitOfWork()) { CategorialValue categories = this.statisticsProvider.GetAgeInformation(projectId); return(AgeInformation.Create(categories)); } }