public async Task <ActionResult> Details(string id) { MyEvent myEvent = null; myEvent = await _repo.GetEvent(id); return(View(myEvent)); }
public async Task <ActionResult> Details(string id) { MyEvent myEvent = null; MyEventsRepository repo = new MyEventsRepository(); myEvent = await repo.GetEvent(id); return(View(myEvent)); }
public async Task <ActionResult> Details(string id) { ExchangeClientDemo.Models.MyEvent myEvent = null; try { MyEventsRepository repo = new MyEventsRepository(); myEvent = await repo.GetEvent(id); } catch (RedirectRequiredException x) { return(Redirect(x.RedirectUri.ToString())); } return(View(myEvent)); }