public ICollection<RelaxBuildDefinition> GetBuilds(string teamProjectId, BaseEntity entity)
        {
            try
            {
                var repository = new BuildServiceRepository(entity);
                var relaxrepository= new RelaxRepository(entity);

                return repository.GetBuilds(relaxrepository.GetTeamProject(int.Parse(teamProjectId)).Name);
            }
            catch (Exception e)
            {
                _eventLog.WriteEntry(e.Message, EventLogEntryType.Error);
                return null;
            }
        }
        public bool QueueBuild(string id, RelaxBuildDefinition entity)
        {
            try
            {
                var repository = new BuildServiceRepository(entity);

                var queueBuild = new AsyncDelegates.AsyncQueueBuild(repository.QueueBuild);

                var callback = new AsyncCallback(Notification);

                IAsyncResult result = queueBuild.BeginInvoke(entity, callback, queueBuild);

            }
            catch (Exception e)
            {
                _eventLog.WriteEntry(e.Message, EventLogEntryType.Error);
            }

            return true;
        }