Hello, i am programming an API so far i've coded so i can create new customers but my taughts here is that i have a function (i think that is the right word for it)
public void writeCustomer (string CustomerNumber, string CustomerOrgNumber, string CustomerName, string PostAdr, string PostAdr2, string GLN, string VisitingAdr )
{
//write to the API code code
}
but is this an good way to go? before im finnished i will have about 10-15 or more parameters that need to be in there aswell.
is it good to use struct to save memory? with all the strings?
or do you know some other solution to it?
and how to i code so i make some of the inputs optional and some needed?
like post Address 2 can be optional
and name + cutsomernumber is needed to make the customer?