public IActionResult AddEvent([FromForm] string eventName, [FromForm] string description, [FromForm] string address, [FromForm] string gpsCoord, [FromForm] string date, [FromForm] string time) { string userID = HttpContext.User.FindFirstValue(ClaimTypes.Email); string currentUser = ds.GetNickname(userID); ViewData.Add("currentUser", currentUser); string datetime = date + " " + time; ds.AddEvent(userID, eventName, address, gpsCoord, description, Convert.ToDateTime(datetime)); return(RedirectToAction("GetEvents", "Events")); }