public ActionResult Edit(int groupId) { var groupDto = _groupProvider.GetById(groupId); var model = MapGroupView(groupDto); return(View(model)); }
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)); }