public ActionResult ForGroup(int groupId)
        {
            var model = new StatisticsView
            {
                Group            = _groupProvider.GetById(groupId),
                UsersDict        = _userProvider.GetUsersByGroup(groupId).ToDictionary(x => x.VkUserId),
                StatisticsGroups = _statisticsProvider.GetStatisticsGroupsForTargetGroup(groupId)
            };

            return(View(model));
        }
Esempio n. 2
0
        public JsonResult GetAllMessagesByGroup(int targetGroupId)
        {
            var statisticsGroups = _statisticsProvider.GetStatisticsGroupsForTargetGroup(targetGroupId);

            return(new JsonCamel(statisticsGroups));
        }