public HttpResponseMessage GetById(int teamId) { try { var result = _teamComponent.getTeamById(teamId); return(Request.CreateResponse(HttpStatusCode.OK, result)); }catch (Exception ex) { return(Request.CreateErrorResponse(HttpStatusCode.NotFound, ex)); } }