BExIS.Dlm.Services.Data.DatasetManager.isDatasetCheckedOutFor C# (CSharp) Method

isDatasetCheckedOutFor() private method

private isDatasetCheckedOutFor ( System.Int64 datasetId, string username ) : bool
datasetId System.Int64
username string
return bool
        private bool isDatasetCheckedOutFor(Int64 datasetId, string username)
        {
            return (DatasetRepo.Query(p => p.Status == DatasetStatus.CheckedOut && p.Id == datasetId && p.CheckOutUser == getUserIdentifier(username)).Count() == 1);
        }