コード例 #1
0
 public void AddPaymentType(ApiPaymentTypeClientResponseModel item)
 {
     if (!this.PaymentTypes.Any(x => x.Id == item.Id))
     {
         this.PaymentTypes.Add(item);
     }
 }
コード例 #2
0
        public virtual ApiPaymentTypeClientRequestModel MapClientResponseToRequest(
            ApiPaymentTypeClientResponseModel response)
        {
            var request = new ApiPaymentTypeClientRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
コード例 #3
0
        public virtual ApiPaymentTypeClientResponseModel MapClientRequestToResponse(
            int id,
            ApiPaymentTypeClientRequestModel request)
        {
            var response = new ApiPaymentTypeClientResponseModel();

            response.SetProperties(id,
                                   request.Name);
            return(response);
        }
コード例 #4
0
 public void SetPaymentTypeIdNavigation(ApiPaymentTypeClientResponseModel value)
 {
     this.PaymentTypeIdNavigation = value;
 }