public void AddPaymentType(ApiPaymentTypeResponseModel item) { if (!this.PaymentTypes.Any(x => x.Id == item.Id)) { this.PaymentTypes.Add(item); } }
public virtual ApiPaymentTypeRequestModel MapResponseToRequest( ApiPaymentTypeResponseModel response) { var request = new ApiPaymentTypeRequestModel(); request.SetProperties( response.Name); return(request); }
public virtual ApiPaymentTypeResponseModel MapRequestToResponse( int id, ApiPaymentTypeRequestModel request) { var response = new ApiPaymentTypeResponseModel(); response.SetProperties(id, request.Name); return(response); }