private int PersistLatestCommitData(int lastRevision) { var list = _sourceControl.GetSince(lastRevision, 20); int result = list.Count(); if (result > 0) { _uow.Context.Commits.AddRange(list); } return(result); }