public ActionResult AttachLeagueToFederation()
 {
     IdModel mod = new IdModel();
     mod.IsDeleted = false;
     mod.IsAttached = false;
     return View(mod);
 }
 public ActionResult AddEmailToNonSubscriberList(IdModel mod)
 {
     mod.IsSuccess = Library.Classes.EmailServer.EmailServer.AddEmailToUnsubscribeList(mod.Id);
     return View(mod);
 }
 public ActionResult Delete()
 {
     IdModel mod = new IdModel();
     mod.IsDeleted = false;
     return View(mod);
 }
 public ActionResult UnlockUser()
 {
     IdModel mod = new IdModel();
     mod.IsSuccess = false;
     return View(mod);
 }
 public ActionResult ResetUserPassword()
 {
     IdModel mod = new IdModel();
     mod.IsSuccess = false;
     return View(mod);
 }
 public ActionResult AttachLeagueToFederation(IdModel mod)
 {
     mod.IsAttached = Library.Classes.Admin.League.League.AttachLeagueToFederation(new Guid(mod.Id), new Guid(mod.Id2));
     return View(mod);
 }
 public ActionResult JoinGames()
 {
     IdModel mod = new IdModel();
     mod.IsSuccess = false;
     return View(mod);
 }
 public ActionResult Delete(IdModel mod)
 {
     mod.IsDeleted = RDN.Library.Classes.Game.Game.DeleteGame(new Guid(mod.Id));
     return View(mod);
 }
 public ActionResult SwitchProfileForUser(IdModel mod)
 {
     mod.IsSuccess = RDN.Library.Classes.Admin.Account.Member.AttachUserToProfile(mod.Id, new Guid(mod.Id2));
     MemberCache.ClearWebSitesCache(new Guid(mod.Id2));
     return View(mod);
 }
 public ActionResult SwitchProfileForUser()
 {
     IdModel mod = new IdModel();
     mod.IsSuccess = false;
     return View(mod);
 }
        public ActionResult DeleteUser(IdModel mod)
        {

            mod.IsDeleted = RDN.Library.Classes.Account.User.DeleteUserByName(mod.Id);
            return View(mod);
        }
        public ActionResult DeleteTempAccountOne(IdModel mod)
        {

            mod.IsDeleted = RDN.Library.Classes.Admin.Account.Member.DeleteTempMemberFromTwoEvils(new Guid(mod.Id));
            return View(mod);
        }
        public ActionResult UnRetireUser(IdModel mod)
        {

            mod.IsDeleted = RDN.Library.Classes.Admin.Account.Member.UnRetireMember(mod.Id);
            return View(mod);
        }
 public ActionResult ChangeEmailFromThenTo(IdModel mod)
 {
     mod.IsSuccess = Library.Classes.EmailServer.EmailServer.ChangeEmailFromThenTo(mod.Id, mod.Id2);
     return View(mod);
 }
 public ActionResult ChangeEmailFromThenTo()
 {
     IdModel mod = new IdModel();
     mod.IsSuccess = false;
     return View(mod);
 }
 public ActionResult SetOwner(IdModel mod)
 {
     var memberId = RDN.Library.Classes.Account.User.GetMemberId(mod.Id2);
     mod.IsSuccess = RDN.Library.Classes.League.LeagueFactory.ToggleOwnerToLeague(new Guid(mod.Id), memberId, LeagueOwnersEnum.Owner);
     try
     {
         WebClient client = new WebClient();
         client.DownloadStringAsync(new Uri(ServerConfig.URL_TO_CLEAR_MEMBER_CACHE + memberId.ToString()));
         WebClient client1 = new WebClient();
         client1.DownloadStringAsync(new Uri(ServerConfig.URL_TO_CLEAR_MEMBER_CACHE_API + memberId.ToString()));
     }
     catch (Exception exception)
     {
         ErrorDatabaseManager.AddException(exception, exception.GetType());
     }
     return View(mod);
 }
 public ActionResult UnPublish(IdModel mod)
 {
     mod.IsSuccess = GameManager.PublishGameOnline(new Guid(mod.Id), false);
     return View(mod);
 }
        public ActionResult Delete(IdModel mod)
        {

            mod.IsDeleted = RDN.Library.Classes.Admin.Account.Member.DeleteMember(new Guid(mod.Id));
            return View(mod);
        }
 public ActionResult DeleteTournament(IdModel mod)
 {
     mod.IsDeleted = RDN.Library.Classes.Game.Tournament.RemoveTournament(new Guid(mod.Id));
     return View(mod);
 }
 public ActionResult DeleteMemberFromLeague(IdModel mod)
 {
     mod.IsSuccess = LeagueFactory.RemoveMemberFromLeague(new Guid(mod.Id), new Guid(mod.Id2));
     try
     {
         WebClient client = new WebClient();
         client.DownloadStringAsync(new Uri(ServerConfig.URL_TO_CLEAR_MEMBER_CACHE + mod.Id2));
         WebClient client1 = new WebClient();
         client1.DownloadStringAsync(new Uri(ServerConfig.URL_TO_CLEAR_MEMBER_CACHE_API + mod.Id2));
     }
     catch (Exception exception)
     {
         ErrorDatabaseManager.AddException(exception, exception.GetType());
     }
     return View(mod);
 }
 public ActionResult JoinGames(IdModel mod)
 {
     mod.IsSuccess = RDN.Library.Classes.Game.Game.JoinGames(new Guid(mod.Id), new Guid(mod.Id2));
     return View(mod);
 }
 public ActionResult DeleteMemberFromLeague()
 {
     IdModel mod = new IdModel();
     mod.IsSuccess = false;
     return View(mod);
 }
        public ActionResult SetLeagueMerchantId(IdModel mod)
        {

            mod.IsSuccess = StoreGateway.ChangeOwnerOfStore(new Guid(mod.Id), new Guid(mod.Id2));
            return View(mod);
        }
 public ActionResult SetLeagueMerchantId()
 {
     IdModel mod = new IdModel();
     mod.IsDeleted = false;
     return View(mod);
 }
 public ActionResult ResetUserPassword(IdModel mod)
 {
     mod.IsSuccess = RDN.Library.Classes.Account.User.ChangeUserPassword(mod.Id, mod.Id2);
     return View(mod);
 }
        public ActionResult DeleteLogo(IdModel mod)
        {

            mod.IsDeleted = Library.Classes.Admin.League.League.DeleteLogoFromLeague(mod.Id);
            return View(mod);
        }
 public ActionResult UnlockUser(IdModel mod)
 {
     mod.IsSuccess = RDN.Library.Classes.Account.User.UnlockAccount(mod.Id);
     return View(mod);
 }
        public ActionResult HideLeague(IdModel mod)
        {

            mod.IsDeleted = Library.Classes.Admin.League.League.HideLeague(new Guid(mod.Id));
            return View(mod);
        }
 public ActionResult Delete(IdModel mod)
 {
     mod.IsDeleted = RDN.Library.Classes.Utilities.SitemapHelper.DeleteSiteMapItem(mod.Id);
     return View(mod);
 }
 public ActionResult AddEmailToNonSubscriberList()
 {
     IdModel mod = new IdModel();
     mod.IsSuccess = false;
     return View(mod);
 }