예제 #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"));
        }