public IHttpActionResult Register([FromBody] RegisterRequest register)
 {
     try
     {
         if (ModelState.IsValid)
         {
             return(Ok(CustomerRegistration.RegisterCustomer(register)));
         }
         else
         {
             return(Ok(CustomerRegistration.GetPaymentMethodOptions()));
         }
     }
     catch (Exception ex)
     {
         return(Ok("unable to complete registration"));
     }
 }
        public IHttpActionResult Register()
        {
            PaymentMethodTypes paymentMethodTypesResponse = new PaymentMethodTypes();
            var paymentMethods = CustomerRegistration.GetPaymentMethodOptions();

            if (paymentMethods.Count == 0)
            {
                paymentMethodTypesResponse.Fault = new Auction.Model.Data.Error {
                    Code = ErrorCodes.NoPaymentOptions, Message = "There are no payment options"
                }
            }
            ;
            else
            {
                paymentMethodTypesResponse.PaymentMethodOptions = paymentMethods;
            }
            return(Ok(paymentMethodTypesResponse));
        }