public ActionResult RejectGame(int gameId = -1, string UId = "")
 {
     RequestHandler rh = new RequestHandler();
     string usermail = "";
     if (WebSecurity.IsAuthenticated)
     {
         usermail = GetUserEmail(WebSecurity.CurrentUserName);
     }
     else //Anonymous user
     {
         if (UId != "")
         {
             usermail = rh.VerifyUniqueID(UId);
             if (usermail == null) return RedirectToAction("ErrorPage", new { ErrorMessage = "The unique id is invalid" });
             //if (gameId != gi.GameId) return RedirectToAction("ErrorPage", new { ErrorMessage = "There was an error while processing the request. The requested game does not match with the given UID" });
             //usermail = gi.ActUserEmail;
         }
         else
         {
             return RedirectToAction("ErrorPage", new { ErrorMessage = "You are not logged in and you have not provided an UID either." });
         }
     }
     rh.DeclineAsync(usermail, gameId);
     if (UId != "") return RedirectToAction("ViewGame", new { gameId = gameId, UId = UId });
     else return RedirectToAction("ViewGame", new { gameId = gameId });
 }