In C# you can declare several versions of a method: // 1 public string tabApiADSetLead(string user, string token, string location){ ... } // 2 public string tabApiADSetLead(string user, string token) { tabApiADSetLead(user, token, ""); // it calls previous function with the location = "" } If you use tabApiADSetLead(user, token, location) it executes (1). If you use tabApiADSetLead(user, token) it executes (2). In (2) you can replace "" with any default value.
@Andrei, afaik this requires to map each overloaded mtehod to a separate web mtehod in the controller´ as web services don't allow overloading.
.NET Programming
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.
Maybe you should consider rephrasing your question and providing more context.