public Customer getCustomer(string id)
 {
     try
     {
         customerBoundary = new CustomerBoundary();
         return customerBoundary.getCustomer(id);
     }
     catch (BusinessException e)
     {
         throw new WebFaultException<GeneralResponse>
             (new GeneralResponse
             {
                 message = e.Message,
                 status = GeneralResponse.STATUS_ERROR,
                 code = "400"
             }, HttpStatusCode.BadRequest);
     }
     catch (PlatformException e)
     {
         throw new WebFaultException<GeneralResponse>
             (new GeneralResponse
             {
                 message = e.Message,
                 status = GeneralResponse.STATUS_ERROR,
                 code = "500"
             }, HttpStatusCode.BadRequest);
     }
 }
        public IList<Customer> getCustomers(string pagina, string regPagina)
        {
            try
            {
                customerBoundary = new CustomerBoundary();

                return customerBoundary.getCustomers(Int32.Parse(pagina), Int32.Parse(regPagina));
            }
            catch(BusinessException e)
            {
                throw new WebFaultException<GeneralResponse>
                    (new GeneralResponse { message = e.Message, status = GeneralResponse.STATUS_ERROR,
                        code = "400" }, HttpStatusCode.BadRequest);
            }
            catch (PlatformException e)
            {
                throw new WebFaultException<GeneralResponse>
                    (new GeneralResponse
                    {
                        message = e.Message,
                        status = GeneralResponse.STATUS_ERROR,
                        code = "500"
                    }, HttpStatusCode.BadRequest);
            }
        }