Exemple #1
0
 public IDataResult <Event> GetById(int id)
 {
     try
     {
         return(new SuccessDataResult <Event>(_eventDal.Get(e => e.Id == id), "İşlem başarılı"));
     }
     catch (Exception e)
     {
         return(new ErrorDataResult <Event>(e.Message));
     }
 }
Exemple #2
0
 public Event Get(int id)
 {
     return(_postDal.Get(id));
 }
 public Event Get(int id)
 {
     return(_eventDal.Get(e => e.Id.Equals(id)));
 }