public async Task <IActionResult> Details(Guid?id) { var reponse = await _eventApiClient.Details(id); var model = JsonConvert.DeserializeObject <EventResponse>(reponse.ToString()); return(View(model)); }
public async Task <IActionResult> Details(Guid?id) { var reponse = await _eventApiClient.Details(id); ViewBag.Listticket = _context.Tickets.Where(x => x.EventId == id).ToList(); var model = JsonConvert.DeserializeObject <EventResponse>(reponse.ToString()); return(View(model)); }