public HttpResponseMessage Get(string id) { var projectQueryService = new ProjectQueryService(); var getProjectByIdQuery = new GetProjectByIdQuery(id); var project = projectQueryService.Execute(getProjectByIdQuery); return(Request.CreateResponse(HttpStatusCode.OK, project)); }
public HttpResponseMessage Get() { var projectQueryService = new ProjectQueryService(); var getProjectsQuery = new GetProjectsQuery(); var projects = projectQueryService.Execute(getProjectsQuery); return(Request.CreateResponse(HttpStatusCode.OK, projects)); }