예제 #1
0
        public override async Task <CommandResponse> Execute()
        {
            var m = new Data.Models.SubverseModerator();

            m.UserName = UserName;
            m.Subverse = Subverse;

            var cmd    = new RemoveModeratorCommand(m);
            var result = await cmd.Execute();

            return(result);
        }
예제 #2
0
        public override async Task <CommandResponse> Execute()
        {
            var m = new Data.Models.SubverseModerator();

            m.UserName  = UserName;
            m.Subverse  = Subverse;
            m.Power     = (int)Level;
            m.CreatedBy = VoatSettings.Instance.SiteUserName;

            var cmd    = new AddModeratorCommand(m);
            var result = await cmd.Execute();

            return(result);
        }