Exemplo n.º 1
0
        public ActionResult Create(Registration registration)
        {
            try
            {
                commandAgent = new AzureQueueCommand();
                registration.CompileAndSendCommand(commandAgent);

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }
Exemplo n.º 2
0
        public string CreateEntry(Registration message)
        {
            string entry = JsonConvert.SerializeObject(message, Formatting.Indented);

            return entry;
        }
Exemplo n.º 3
0
        public void UpdateList(Registration message)
        {
            List<string> list = GetListFromData();

            list.Add(CreateEntry(message));

            string data = CreateData(list);

            SetData(data);
        }