Exemple #1
0
        public IActionResult AddMap([FromForm] int eventId, [FromForm] string mapName, [FromForm] string mapLink)
        {
            string userID      = HttpContext.User.FindFirstValue(ClaimTypes.Email);
            string currentUser = ds.GetNickname(userID);

            ViewData.Add("currentUser", currentUser);
            ds.AddMap(mapLink, mapName, eventId);
            return(RedirectToAction("ShowEvent", "Events", new { @eid = eventId }));
        }