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); }
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); }