public virtual ApiPaymentTypeClientRequestModel MapClientResponseToRequest( ApiPaymentTypeClientResponseModel response) { var request = new ApiPaymentTypeClientRequestModel(); request.SetProperties( response.Name); return(request); }
public virtual ApiPaymentTypeClientResponseModel MapClientRequestToResponse( int id, ApiPaymentTypeClientRequestModel request) { var response = new ApiPaymentTypeClientResponseModel(); response.SetProperties(id, request.Name); return(response); }
public virtual async Task <UpdateResponse <ApiPaymentTypeClientResponseModel> > PaymentTypeUpdateAsync(int id, ApiPaymentTypeClientRequestModel item, CancellationToken cancellationToken = default(CancellationToken)) { HttpResponseMessage httpResponse = await this.Client.PutAsJsonAsync($"api/PaymentTypes/{id}", item, cancellationToken).ConfigureAwait(false); this.HandleResponseCode(httpResponse); return(JsonConvert.DeserializeObject <UpdateResponse <ApiPaymentTypeClientResponseModel> >(httpResponse.Content.ContentToString())); }