Exemple #1
0
        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());
 }
Exemple #3
0
 public IEnumerable <Profession> Get(Expression <Func <Profession, bool> > predicate)
 {
     return(_professionRepository.Get(predicate));
 }