public IActionResult GetBookings() { string email = User.FindFirst(ClaimTypes.NameIdentifier)?.Value; ApplicationUser user = context.ApplicationUsers.FirstOrDefault(c => c.Email.Equals(email)); List <MatchResponse> matches = IRiderService.GetBookings(user); return(Ok(new { status = 200, bookings = matches })); }