public AddBrandParameter MapParameter(UserPaymentProfileModel UserPaymentProfileModel, HttpRequestMessage request)
        {
            AddBrandParameter destination = new AddBrandParameter();

            this.ObjectToObjectMapper.Map <UserPaymentProfileModel, AddBrandParameter>(UserPaymentProfileModel, destination);
            return(destination);
        }
 public PatchUserPaymentProfileParameter(UserPaymentProfileModel userPaymentProfileModel)
 {
     this.Id               = Guid.Parse(userPaymentProfileModel.Id);
     this.UserProfileId    = userPaymentProfileModel.UserProfileId;
     this.Description      = userPaymentProfileModel.Description;
     this.CardType         = userPaymentProfileModel.CardType;
     this.ExpirationDate   = userPaymentProfileModel.ExpirationDate;
     this.MaskedCardNumber = userPaymentProfileModel.MaskedCardNumber;
     this.CardIdentifier   = userPaymentProfileModel.CardIdentifier;
 }
 public async Task <IHttpActionResult> Patch([FromBody] UserPaymentProfileModel model)
 {
     return(await this.ExecuteAsync <IPatchUserPaymentProfileMapper, UserPaymentProfileModel, PatchUserPaymentProfileParameter, PatchUserPaymentProfileResult, UserPaymentProfileModel>(this.patchUserPaymentProfileMapper, new Func <PatchUserPaymentProfileParameter, PatchUserPaymentProfileResult>(this.UserPaymentProfileService.PatchUserPaymentProfile), model));
 }
Example #4
0
 public PatchUserPaymentProfileParameter MapParameter(UserPaymentProfileModel userPaymentProfileModel, HttpRequestMessage request)
 {
     return(new PatchUserPaymentProfileParameter(userPaymentProfileModel));
 }