public IDataResult <List <Event> > GetAll() { try { return(new SuccessDataResult <List <Event> >(_eventDal.GetAll(), "İşlem başarılı")); } catch (Exception e) { return(new ErrorDataResult <List <Event> >(e.Message)); } }
public List <Event> GetAll() { return(_postDal.GetAll()); }
public IEnumerable <Event> GetAll() { return(_eventDal.GetAll()); }