Example #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");
        }
Example #2
0
        public ActionResult DeleteContact(int userConnectionID)
        {
            mu = Membership.GetUser();

            ucon = new UserConnection(userConnectionID);

            char conType = ucon.StatusType;

            if (ucon.IsConfirmed)
            {
                ucon.Delete();
            }

            if (conType == 'R')
            {
                return RedirectToAction("irlcontacts");
            }
            else if (conType == 'C')
            {
                return RedirectToAction("CyberAssociates");
            }
            else
            {
                Utilities.LogError("deleted no existing contact type");
                // something went wrong
                return new EmptyResult();
            }
        }
Example #3
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");
        }