Ejemplo n.º 1
0
        public ActionResult BlockedUser(int userAccountID)
        {
            mu = Membership.GetUser();

            BootBaronLib.AppSpec.DasKlub.BOL.BlockedUser bu = new BlockedUser();

            ucon = new UserConnection();
            ucon.GetUserToUserConnection(userAccountID, Convert.ToInt32(mu.ProviderUserKey));
            ucon.Delete();

            bu.UserAccountIDBlocked = userAccountID;
            bu.UserAccountIDBlocking = Convert.ToInt32(mu.ProviderUserKey);
            bu.Create();

            return RedirectToAction("Visitors");
        }
Ejemplo n.º 2
0
        public ActionResult BlockedUser(int userAccountID)
        {
            var bu = new BlockedUser();

            _ucon = new UserConnection();
            if (_mu != null) _ucon.GetUserToUserConnection(userAccountID, Convert.ToInt32(_mu.ProviderUserKey));
            _ucon.Delete();

            bu.UserAccountIDBlocked = userAccountID;
            if (_mu != null) bu.UserAccountIDBlocking = Convert.ToInt32(_mu.ProviderUserKey);
            bu.Create();

            return RedirectToAction("Visitors");
        }