public CustomerProfileResponse CustomerProfile(CustomerProfileRequest request)
        {
            if (request == null)
            {
                throw new ArgumentNullException("request");
            }

            return(SendGetRequest <CustomerProfileRequest, CustomerProfileResponse>(request, "CustomerProfile"));
        }
        public IActionResult EditProfile([FromBody] CustomerProfileRequest advisorRequest)
        {
            if (!ModelState.IsValid)
            {
                return(StatusCode(400, "Invaild Adivor"));
            }
            var account = _mapper.Map <Account>(advisorRequest);

            _accountService.Update(account);

            return(StatusCode(200, new { message = "Update Success" }));
        }
        public CustomerProfileResponse CustomerProfile(string merchantCustomerID, string merchantSessionID)
        {
            if (merchantCustomerID == null)
            {
                throw new ArgumentNullException("merchantCustomerID");
            }

            var request = new CustomerProfileRequest
            {
                MerchantCustomerID = merchantCustomerID,
                MerchantSessionID  = merchantSessionID
            };

            return(CustomerProfile(request));
        }