Exemple #1
0
        public XElement GetEmailXMLForLanguageIdAndType(int languageId, string emailType)
        {
            Translation translation = _repTranslation.GetSingle(x => x.LanguageId == languageId && x.Classification == "Email" && x.Key == emailType);

            //FindSingleBy.LanguageId.And.Classification.And.Key(languageId, "Email", emailType);

            if (translation != null)
            {
                Language   language     = _repLanguage.GetSingle(x => x.Id == languageId) ?? Default;
                XNamespace xn           = XNamespace.Xml;
                XElement   xtranslation = XElement.Parse(translation.Value);
                return(xtranslation);
            }

            return(null);
        }
        public ActionResult Edit(int label, int lang)
        {
            var model = translationRepository.GetSingle(label, lang);

            return(View(model));
        }