public static HttpResponseMessage GetAllDataOnProject(int idProject) { return(new HttpResponseMessage(HttpStatusCode.OK) { Content = new ObjectContent <Dictionary <ProjectObject, List <UserObject> > >(LogicProjects.GetAllDataOnProject(idProject), new JsonMediaTypeFormatter()) }); }