Exemplo n.º 1
0
        public string Remove(Classes.UserSession userSession, string username)
        {
            string resultString = "";
            if (userSession.IsUserBlocked(username))
            {
                userSession.BlockUser(username);
                resultString = String.Format(Lang.Trans("{0} has been removed from your blocked list"), username);
            }
            else
            {
                resultString = Lang.Trans("This user is not in your blocked list!");
            }

            return resultString;
        }