public HttpResponseMessage Delete([FromBody] int id) { try { var deleted = _teamComponent.DeleteTeam(id); return(Request.CreateResponse(HttpStatusCode.OK, deleted)); }catch (Exception ex) { return(Request.CreateErrorResponse(HttpStatusCode.NotFound, ex)); } }