public async Task <ActionResult <Models.Bulletin> > Get() { Models.Bulletin Bulletin = new Models.Bulletin(); try { Models.BulletinMgr mgr = new Models.BulletinMgr(AppConfig); Bulletin = await mgr.GetBulletin(); } catch (Exception e) { System.Diagnostics.Trace.TraceError($"Error: Cannot find bulletin. Exception: {e.Message}"); } return(Bulletin); }
public async Task OnGet() { Models.BulletinMgr mgr = new Models.BulletinMgr(AppConfig); Bulletin = await mgr.GetBulletin(); }