Esempio n. 1
0
        public ActionResult Add(string name, string text)
        {
            Data.Lookup persistentLookup = new Data.Lookup {
                LookupName = name, Value = text
            };
            LookingUp.Add(persistentLookup);
            Caching.AddLookupValue(persistentLookup);

            return(Content(JsonConvert.SerializeObject(new Models.Lookup(persistentLookup.ID, persistentLookup.Value))));
        }