public async Task <IActionResult> EventInfo(int id) { try { var dto = await _actionManager.GetEventInfoAsync(id, User); var model = _mapper.Map <EventDTO, EventViewModel>(dto); return(View(model)); } catch { return(RedirectToAction("HandleError", "Error", new { code = 500 })); } }
public async Task <IActionResult> GetEventDetail(int id) { return(Ok(await _actionManager.GetEventInfoAsync(id, await _userManager.GetUserAsync(User)))); }