public void AddBankAccount(ApiBankAccountClientResponseModel item) { if (!this.BankAccounts.Any(x => x.Id == item.Id)) { this.BankAccounts.Add(item); } }
public virtual ApiBankAccountClientRequestModel MapClientResponseToRequest( ApiBankAccountClientResponseModel response) { var request = new ApiBankAccountClientRequestModel(); request.SetProperties( response.AccountNumber, response.ArtistId, response.RoutingNumber); return(request); }
public virtual ApiBankAccountClientResponseModel MapClientRequestToResponse( int id, ApiBankAccountClientRequestModel request) { var response = new ApiBankAccountClientResponseModel(); response.SetProperties(id, request.AccountNumber, request.ArtistId, request.RoutingNumber); return(response); }