예제 #1
0
        public async Task <ActionResult <EventDetails> > GetEventDetailsById(string id)
        {
            var mytask       = Task.Run(() => _repo.GetEventDetailsById(id));
            var eventDetails = await mytask;

            return(eventDetails);
        }