public bool AddResult() { DictionaryService deServ = new DictionaryService(); bool f = deServ.Add(id, name, depart); return(f); }
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()); } }