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

            request.SetProperties(
                response.AccountNumber,
                response.ArtistId,
                response.RoutingNumber);
            return(request);
        }
コード例 #3
0
        public virtual ApiBankAccountClientResponseModel MapClientRequestToResponse(
            int id,
            ApiBankAccountClientRequestModel request)
        {
            var response = new ApiBankAccountClientResponseModel();

            response.SetProperties(id,
                                   request.AccountNumber,
                                   request.ArtistId,
                                   request.RoutingNumber);
            return(response);
        }