public ActionResult EditDictionary(DictionaryViewModel model) { DictionaryDAL ddal = new DictionaryDAL(); ddal.Update(model.CastDB(model)); ddal.AcceptAllChange(); return(Content("Success")); }
public ActionResult DeleteDictionary(string id) { DictionaryDAL ddal = new DictionaryDAL(); var model = ddal.Get(id); ddal.Delete(model); ddal.AcceptAllChange(); return(Content("Success")); }