Ejemplo n.º 1
0
        public List <LaboratoryModel> GetAll()
        {
            var res = laboratoryRepository.GetAll();
            List <LaboratoryModel> laboratoryModels = new List <LaboratoryModel>();

            foreach (Laboratory l in res)
            {
                laboratoryModels.Add(mapper.map(l));
            }
            return(laboratoryModels);
        }
Ejemplo n.º 2
0
        public List <LaboratoryModel> GetAll()
        {
            var laboratoryList = _iLaboratoryRepository.GetAll()
                                 .Select(l => l)
                                 .OrderBy(n => n.LabNumber)
                                 .ToList();

            IList <LaboratoryModel> laboratoryModelsList = new List <LaboratoryModel>();

            laboratoryList.ForEach(s => laboratoryModelsList.Add(_iLaboratoryMapper.Map(s)));

            List <LaboratoryModel> modelList = laboratoryModelsList as List <LaboratoryModel>;

            return(modelList);
        }
Ejemplo n.º 3
0
 public IEnumerable <LaboratoryModel> GetAll()
 {
     return(Mapper.Map <LaboratoryDto[], IEnumerable <LaboratoryModel> >(labRepo.GetAll().ToArray()).Select(x => x.Trim()));
 }