Esempio n. 1
0
        public List <SrvOutPots> Test_MYPS55_3(
            int PI_1I
            )
        {
            try
            {
                /// Data Validations

                //if (String.IsNullOrEmpty(PI_1I))

                //throw new FaultException<ValidationFault>(new ValidationFault());

                using (TestBLL tbl = new TestBLL())
                {
                    return(tbl.Test_MYPS55_3(
                               PI_1I
                               ));
                }
            }
            catch (FaultException <ValidationFault> e)
            {
                ValidationFault fault = new ValidationFault
                {
                    Result      = true,
                    Message     = "Parameter not correct",
                    Description = "Invalid Parameter Name or All Parameters are nullu"
                };

                throw new FaultException <ValidationFault>(
                          fault);
            }
            catch (Exception ex)
            {
                ValidationFault fault = new ValidationFault
                {
                    Result      = false,
                    Message     = ex.Message,
                    Description = "Service have an internal error please contact service administartor [email protected]"
                };

                throw new FaultException <ValidationFault>(fault);
            }
        }