Ejemplo n.º 1
0
        public LanguageWSDTO Translate(ControllerLayer.LanguageDTO director)
        {
            LanguageWSDTO Output = new LanguageWSDTO();

            Output.LID          = director.LID;
            Output.LanguageName = director.LanguageName;
            return(Output);
        }
Ejemplo n.º 2
0
        public ControllerLayer.LanguageDTO Translate(LanguageWSDTO language)
        {
            if (language.LID != null || language.LanguageName != null)
            {
                return(new ControllerLayer.LanguageDTO((int)language.LID, language.LanguageName));
            }

            throw new System.Web.HttpRequestValidationException("Invalid Language");
        }