public bool AddDictionary(LanguageViewModel viewModel) { try { LanguageDAL languageDAL = new LanguageDAL(); CacheManager.Remove("language-" + viewModel.Code); LanguageBE entity; entity = Mapper.Map <LanguageViewModel, LanguageBE>(viewModel); bool result = languageDAL.AddDictionary(entity); return(result); } catch (Exception ex) { throw ex; } }