public IHttpActionResult Get(int id) { if (!_dataService.SessionRepository.Exists(id)) { return(new Tools.NotFoundResult("Session not found")); } var session = _dataService.SessionRepository.Get(id); return(SessionLinkHelper.CreateResponse(session, Request)); }
public IHttpActionResult Get(int id) { var session = _dataService.SessionRepository.Get(id); return(SessionLinkHelper.CreateResponse(session, Request)); }