public virtual void Run()
        {
            var repo = new CommandsRepository();

            var commands = repo.GetCommands();

            ProcessTheme(commands);
            ProcessSubscriptionEmail(commands);
        }
Beispiel #2
0
        public ActionResult GetCommands()
        {
            ICommandsRepository commandsRepository = new CommandsRepository();
            var commands = commandsRepository.GetCommands();

            var json = JsonConvert.SerializeObject(commands);

            return(new JsonResult()
            {
                Data = json
            });
        }