public function getProjectsAndbugType($userId)
 {
     $projects = $this->project->byUser($userId)->active()->get(array('id', 'name'));
     $bugtypes = BugType::get(array('id', 'name'));
     return Response::JSON(array('projects' => $projects, 'bugtypes' => $bugtypes));
 }