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)); }
public List <Student> GetAll() { return(_studentDal.GetAll()); }
public List <Student> GetAll() { var students = _mapper.Map <List <Student> >(_studentDal.GetAll()); return(students); }
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()); }
public IDataResult <List <Student> > GetAll() { return(new SuccessDataResult <List <Student> >(_studentDal.GetAll(), Messages.CustomersListed)); }
public Student GetStudentByName(string name) { return(studentDal.GetAll().FirstOrDefault(i => i.StudentName == name)); }
public IDataResult <List <Student> > GetAll() { var result = _studentDal.GetAll(); return(new SuccessDataResult <List <Student> >(result)); }