I had a question about some of the codes that I found in a project of a former employee of the company. It is a code that contains assignment in the variables parameters. Here is an example:
public ActionResult Teste(long id = 0, String tema = "")
{
//Lógica
}
My question is what is the assignment - long id = 0, String tema = ""
if in this context is actually assignment in the codes. Virtually all Actions
and several methods contain this form of declaration.