예제 #1
0
        private int?GetOfferingFromDepartment(string departmentCode)
        {
            var offerings = _offeringRepository.GetOfferings();

            return(offerings?.Where(x => x.Code == departmentCode)?.FirstOrDefault()?.Id);
        }
예제 #2
0
        public IEnumerable <Offering> GetOfferings()
        {
            var offerings = _offeringRepository.GetOfferings();

            return(_offeringModelFactory.CreateModelList <Offering>(offerings));
        }