private int?GetOfferingFromDepartment(string departmentCode) { var offerings = _offeringRepository.GetOfferings(); return(offerings?.Where(x => x.Code == departmentCode)?.FirstOrDefault()?.Id); }
public IEnumerable <Offering> GetOfferings() { var offerings = _offeringRepository.GetOfferings(); return(_offeringModelFactory.CreateModelList <Offering>(offerings)); }