public ActionResult <List <BugNote> > GetNotes(string id) { try { List <BugNote> bugnotes = _bs.GetBugNotesById(id); return(Ok(bugnotes)); } catch (Exception e) { return(BadRequest(e.Message)); } }