public IEnumerable <JobItem> GetJobItems(Guid jobId) { if (!CurrentUser.HasRole(UserRole.Member)) { throw new DomainValidationException(Messages.InsufficientSecurityClearance); } return(_jobItemRepository.GetJobItems(jobId)); }
public List <JobItem> Get(string jobType) { return(_jobItemRepository.GetJobItems(jobType)); }