Esempio n. 1
0
        public int SelectCountLanguageByName(string languageName)
        {
            try
            {
                MasterLogic masterLogic = new MasterLogic();
                return(masterLogic.SelectCountLanguageByName(languageName));
            }
            catch (BusinessLogicException ex)
            {
                HandleSoapException handleSoapExceptionnew = new HandleSoapException();
                SoapException       soapException          = new SoapException();
                soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri,
                                                                           "SelectCountLanguageByName",
                                                                           ex.Message,
                                                                           AppEnum.FaultSourceWS.BusinessError.ToString(),
                                                                           Constants.faultBusinessError,
                                                                           AppEnum.FaultSourceWS.BusinessError);
                throw soapException;
            }
            catch (Exception ex)
            {
                HandleSoapException handleSoapExceptionnew = new HandleSoapException();
                SoapException       soapException          = new SoapException();

                soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri,
                                                                           "SelectCountLanguageByName",
                                                                           ex.Message,
                                                                           AppEnum.FaultSourceWS.AplicationError.ToString(),
                                                                           Constants.faultAplicationError,
                                                                           AppEnum.FaultSourceWS.AplicationError);
                throw soapException;
            }
        }