public void AddPaymentType(ApiPaymentTypeClientResponseModel item) { if (!this.PaymentTypes.Any(x => x.Id == item.Id)) { this.PaymentTypes.Add(item); } }
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 void SetPaymentTypeIdNavigation(ApiPaymentTypeClientResponseModel value) { this.PaymentTypeIdNavigation = value; }