public IDataResult <List <Student> > GetAll()
        {
            List <Student> result;

            result = _studentDal.GetAll();
            try
            {
                result = _studentDal.GetAll();
            }
            catch (Exception)
            {
                return(new ErrorDataResult <List <Student> >(new List <Student> {
                }, "Error getting all data"));
            }
            return(new SuccessDataResult <List <Student> >(result));
        }
Пример #2
0
 public List <Student> GetAll()
 {
     return(_studentDal.GetAll());
 }
        public List <Student> GetAll()
        {
            var students = _mapper.Map <List <Student> >(_studentDal.GetAll());

            return(students);
        }
Пример #4
0
 public async Task <List <Student> > GetAllHotel()
 {
     return(await _studentDal.GetAll());
 }
        //injeksiyon yaptık


        public List <Student> GetAll()
        {
            //diğer iş kodlarınında yazabiliriz. sadece getALll için yaptık.
            return(_StudentDal.GetAll());
        }
Пример #6
0
 public IDataResult <List <Student> > GetAll()
 {
     return(new SuccessDataResult <List <Student> >(_studentDal.GetAll(), Messages.CustomersListed));
 }
Пример #7
0
 public Student GetStudentByName(string name)
 {
     return(studentDal.GetAll().FirstOrDefault(i => i.StudentName == name));
 }
Пример #8
0
        public IDataResult <List <Student> > GetAll()
        {
            var result = _studentDal.GetAll();

            return(new SuccessDataResult <List <Student> >(result));
        }