public async Task <IActionResult> Details(Guid?id)
        {
            var reponse = await _eventApiClient.Details(id);

            var model = JsonConvert.DeserializeObject <EventResponse>(reponse.ToString());

            return(View(model));
        }
Exemple #2
0
        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));
        }