Пример #1
0
        public ActionResult EditDictionary(DictionaryViewModel model)
        {
            DictionaryDAL ddal = new DictionaryDAL();

            ddal.Update(model.CastDB(model));
            ddal.AcceptAllChange();
            return(Content("Success"));
        }
Пример #2
0
        public ActionResult DeleteDictionary(string id)
        {
            DictionaryDAL ddal  = new DictionaryDAL();
            var           model = ddal.Get(id);

            ddal.Delete(model);
            ddal.AcceptAllChange();
            return(Content("Success"));
        }