public HttpResponseMessage GetProjectsAndHoursByUserId(int userId) { return(new HttpResponseMessage(HttpStatusCode.OK) { Content = new ObjectContent <List <Unknown> >(LogicProjects.GetProjectsAndHoursByUserId(userId), new JsonMediaTypeFormatter()) }); }