public HttpResponseMessage SelectAll() { List <Squad> squads = _squadService.SelectAll(); ItemsResponse <Squad> response = new ItemsResponse <Squad>(); response.Items = squads; return(Request.CreateResponse(HttpStatusCode.OK, response)); }
public HttpResponseMessage SelectAll() { List <Squad> squads = _squadService.SelectAll(); ItemsResponse <Squad> response = new ItemsResponse <Squad>(); response.Items = squads; return(Request.CreateResponse(HttpStatusCode.OK, response)); }