Esempio n. 1
0
        public IEnumerable <Consultant> GetConsultants()
        {
            // return con_repo.GetAll();
            IEnumerable <Consultant> ap = con_repo.GetAll();

            ap = ap.OrderByDescending(a => a.ConsultantId);
            return(ap);
        }
Esempio n. 2
0
        public async Task <IEnumerable <Consultant> > ListAsync()
        {
            var consultants = await _consultantRepository.GetAll();

            return(consultants);
        }