Esempio n. 1
0
 public List <AdvertistmentViewModel> GetAll()
 {
     return(_advertistmentRepository.FindAll()
            .ProjectTo <AdvertistmentViewModel>().ToList());
 }
Esempio n. 2
0
 public List <AdvertistmentViewModel> GetAdvertistmentByPositionId(string positionId)
 {
     return(_advertistmentRepository.FindAll(x => x.Status == Data.Enums.Status.Active && x.PositionId == positionId)
            .ProjectTo <AdvertistmentViewModel>().ToList());
 }