I am working with an API that is posting to a URL. One of the variables is is passing is called ‘event’. Since event is a keyword in C# my code is getting hung up on it.
public ActionResult Index(string event,string email, string category, string reason, string response, string type, string status)
{
return View();
}
What is the workaround for this?
Keywords can usually not be used for argument names. However you can change your definition into: