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