I have an action on my web project which calls to an API
[HttpPost] public async Task ExpireSurvey(int id) { var token =
you can do it with a dictionary
Dictionary dict = new Dictionary(); dict["id"] = 1 dict["date"] = DateTime.Now; JsonConvert.SerializeObject(dict);