public async Task <SuccessResponse> UpdateAccountInformation(UpdateAccountInformationRequest updateAccountInformationRequest) { LoginRequest loginRequest = new LoginRequest() { userName = _configuration.GetSection("ApplicationSettings")["UserName"], password = _configuration.GetSection("ApplicationSettings")["Password"] }; LoginResponse loginResponse = await _authenticationService.Login(loginRequest); ApiEndPoint = _configuration.GetSection("ApplicationSettings")["ApiEndPoint"] + "users/UpdateAccountInformation"; var response = await Task.Run(async() => { var result = await PostAsync(updateAccountInformationRequest, loginResponse.token); return(result); }); return(response); }
public async Task <SuccessResponse> UpdateAccountInformation(UpdateAccountInformationRequest updateAccountInformationRequest) { var result = await _userService.UpdateAccountInformation(updateAccountInformationRequest); return(result); }