public HttpResponseMessage GetAll() { List <Tickets> Tickets = TicketsHelper.GetAll(); bool TheresData = Tickets.Count > 0; if (!TheresData) { throw new HttpResponseException(HttpStatusCode.NoContent); } return(Request.CreateResponse(HttpStatusCode.OK, Tickets)); }