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

            request.SetProperties(
                response.AccountNumber,
                response.ArtistId,
                response.RoutingNumber);
            return(request);
        }
Beispiel #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);
        }