public ICollection <ProfessionModel> GetAll() { var entities = _professionRepository.Get(); ICollection <ProfessionModel> models = new List <ProfessionModel>(); foreach (var entity in entities) { models.Add(entity.ToModel()); } return(models); }
public IEnumerable <Profession> GetAll() { return(repository.Get()); }
public IEnumerable <Profession> Get(Expression <Func <Profession, bool> > predicate) { return(_professionRepository.Get(predicate)); }