示例#1
0
文件: Story.cs 项目: aoki1210/kigg
        public bool UnmarkAsSpam(DateTime at, IUser byUser)
        {
            Check.Argument.IsNotInvalidDate(at, "at");
            Check.Argument.IsNotNull(byUser, "byUser");

            if (CanUnmarkAsSpam(byUser))
            {
                var spam = this.GetMarkAsSpam(byUser);
                this.UnmarkSpam(spam);
                StoryMarkAsSpamsInternal.Remove((StoryMarkAsSpam)spam);

                LastActivityAt = at;

                return(true);
            }

            return(false);
        }