Sir
Martin Dráb ,
My apology sir. Actually, I have created all the parmMethods in my request class but I have not showed them in the post because I thought they are just repeating the same and it would save the space as well. I am using parmName, parmCustPaymTerm, parmCustGroup, and all other parmMethods expect the parmCustAccount for this insertion method.
Here is my complete request class.
[DataContractAttribute]
class CustomerRequest
{
Name name;
CustPaymTermId custPaymTerm;
CustGroupId custGroup;
CustCurrencyCode custCurrency;
CustClassificationId custClassification;
CustCreditRating custCreditRating;
InventSiteId custInventSite;
InventLocationId custInventLocation;
CustAccount custAccount;
[DataMember("CustAccount")]
public CustAccount parmCustAccount(CustAccount _custAccount = custAccount)
{
if (!prmIsDefault(_custAccount))
{
custAccount = _custAccount;
}
return custAccount;
}
[DataMember("Name")]
public Name parmName(Name _name = name)
{
if (!prmIsDefault(_name))
{
name = _name;
}
return name;
}
[DataMember("CustPaymTermId")]
public CustPaymTermId parmCustPaymTerm(CustPaymTermId _custPaymTerm = custPaymTerm)
{
if (!prmIsDefault(_custPaymTerm))
{
custPaymTerm = _custPaymTerm;
}
return custPaymTerm;
}
[DataMember("CustGroupId")]
public CustGroupId parmCustGroup(Name _custGroup = custGroup)
{
if (!prmIsDefault(_custGroup))
{
custGroup = _custGroup;
}
return custGroup;
}
[DataMember("CustCurrencyCode")]
public CustCurrencyCode parmCustCurrency(CustCurrencyCode _custCurrency = custCurrency)
{
if (!prmIsDefault(_custCurrency))
{
custCurrency = _custCurrency;
}
return custCurrency;
}
[DataMember("CustClassificationId")]
public CustClassificationId parmCustClassification(CustClassificationId _custClassification = custClassification)
{
if (!prmIsDefault(_custClassification))
{
custClassification = _custClassification;
}
return custClassification;
}
[DataMember("CustCreditRating")]
public CustCreditRating parmCustCreditRating(CustCreditRating _custCreditRating = custCreditRating)
{
if (!prmIsDefault(_custCreditRating))
{
custCreditRating = _custCreditRating;
}
return custCreditRating;
}
[DataMember("InventSiteId")]
public InventSiteId parmInventSiteId(InventSiteId _custInventSite = custInventSite)
{
if (!prmIsDefault(_custInventSite))
{
custInventSite = _custInventSite;
}
return custInventSite;
}
[DataMember("InventLocationId")]
public InventLocationId parmInventLocationId(InventLocationId _custInventLocation = custInventLocation)
{
if (!prmIsDefault(_custInventLocation))
{
custInventLocation = _custInventLocation;
}
return custInventLocation;
}
}