예제 #1
0
        public int SelectCountCategoryByName(string categoryName)
        {
            try
            {
                MasterLogic masterLogic = new MasterLogic();
                return(masterLogic.SelectCountCategoryByName(categoryName));
            }
            catch (BusinessLogicException ex)
            {
                HandleSoapException handleSoapExceptionnew = new HandleSoapException();
                SoapException       soapException          = new SoapException();
                soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri,
                                                                           "SelectCountCategoryByName",
                                                                           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,
                                                                           "SelectCountCategoryByName",
                                                                           ex.Message,
                                                                           AppEnum.FaultSourceWS.AplicationError.ToString(),
                                                                           Constants.faultAplicationError,
                                                                           AppEnum.FaultSourceWS.AplicationError);
                throw soapException;
            }
        }