public IEnumerable <BenefitResDto> GetAll() { var benefits = _repository.GetAll(); if (!benefits.Any()) { return(null); } var benefitDtos = benefits.Select(x => _mapper.Map <BenefitResDto>(x)); return(benefitDtos); }
public List <Benefit> getProgramsForId(int Id) { var programs = _benefitRepository.GetAll(Id); return(programs); }