public CustomView(GetGroupName simpleDelegate, PopUpPage page) { InitializeComponent(); BindingContext = customPageViewModel = new CustomPageViewModel(); customPageViewModel.SetpageTitle(page); this.simpleDelegate = simpleDelegate; }
public void SetCommonView() { simpleDelegate = (string newgroup) => { AddNewGroup(newgroup); PopupNavigation.Instance.PopAsync(); }; }
public async Task <IActionResult> GetGroups() { var userId = User.GetId(); //join tournamenthostbids etc List <string> hostGroups = await _context.WagerHostBids.AsNoTracking().Where(x => x.ProfileId == userId).Select(x => GetGroupName.Wager(x.Id)).ToListAsync(); List <string> clientGroups = await _context.WagerChallengeBids.AsNoTracking().Where(x => x.ProfileId == userId).Select(x => GetGroupName.Wager(x.Id)).ToListAsync(); return(Ok(new { groups = hostGroups.Union(clientGroups), hostCount = hostGroups.Count, clientCount = clientGroups.Count })); }