Beispiel #1
0
 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));
     }
 }
Beispiel #2
0
 public List <Event> GetAll()
 {
     return(_postDal.GetAll());
 }
Beispiel #3
0
 public IEnumerable <Event> GetAll()
 {
     return(_eventDal.GetAll());
 }