Example #1
0
        public ActionResult addkey(dictionary dic)
        {
            try
            {
                dictionary d = new dictionary();

                d.key = dic.key;
                d.val = dic.val;
                DictionaryService divserv = new DictionaryService();
                divserv.Add(d);
                divserv.Commit();
                return(RedirectToAction("addkey"));
            }
            catch
            {
                return(View());
            }
        }