public ActionResult GroupsAndMembers_Post(string[] GroupIdsArg) { string tmpString = GroupIdsArg[0]; var getMembers = new MeetupAPI.GetMembers(); List <string[]> tmpGrpsId = new List <string[]>(); List <string[]> CombinedGrpsId = new List <string[]>(); List <string> GroupIds = tmpString.Split(',').ToList(); foreach (string item in GroupIds) { ////first get group info then get that group members info var grpId = new MeetupAPI.GetGroups(); string[] grpIdinfo = grpId.GetGroupInfo(item); //ViewBag.allGroupIds = grpsId; //get all members info for this item(group id) List <string[]> grpMembersInfo = getMembers.GetMembersDetail(item); foreach (var member in grpMembersInfo) { string[] tmp = new string[13]; grpIdinfo.CopyTo(tmp, 0); member.CopyTo(tmp, grpIdinfo.Length); CombinedGrpsId.Add(tmp); } } return(View("GroupsAndMembers_Post", CombinedGrpsId)); }
public ActionResult GetGroups() { var groupsId = new MeetupAPI.GetGroups(); List <string[]> grpsId = groupsId.GetGroupsId("CA", "AB", "Calgary", "100"); ViewBag.allGroupIds = grpsId; return(View("Groups", grpsId)); }