public HttpResponseMessage GetAssignmentsByPeriod(int period) { ItemsResponse <Assignment> response = new ItemsResponse <Assignment>(); response.Items = AssignmentService.GetAssignmentsByPeriod(period); return(Request.CreateResponse(response)); }