public async Task <IActionResult> RemoveEvent(Guid eventId) { if (eventId == null) { return(RedirectToAction("Index")); } var currentUser = await _userManager.GetUserAsync(User); var succeed = await _eventService.RemoveEvent(eventId, currentUser.Id); if (succeed) { return(RedirectToAction("Index")); } return(RedirectToAction("Index")); }