コード例 #1
0
        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));
        }
コード例 #2
0
        public JsonResult GetAllMessagesByGroup(int targetGroupId)
        {
            var statisticsGroups = _statisticsProvider.GetStatisticsGroupsForTargetGroup(targetGroupId);

            return(new JsonCamel(statisticsGroups));
        }