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

            var commands = repo.GetCommands();

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

            var json = JsonConvert.SerializeObject(commands);

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