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

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