string GetbyLang(DicItem dicItem) { switch (Language) { case Languages.Turkce: return(dicItem.Tr); case Languages.English: return(dicItem.En); default: return(dicItem.Tr); } }
public string Get(int Id) { if (DicItemList == null || DicItemList.Count == 0) { return(""); } DicItem item = DicItemList.Where(x => x.Id == Id).FirstOrDefault(); if (item == null) { return(""); } return(GetbyLang(item)); }
public string Get(string xKey, params string[] param) { if (DicItemList == null || DicItemList.Count == 0) { return(xKey); } DicItem item = DicItemList.Where(x => x.Key == xKey).FirstOrDefault(); if (item == null) { return(xKey); } return(GetbyLang(item)); }