Beispiel #1
0
 public IDataResult <List <Game> > GetAll()
 {
     if (DateTime.Now.Hour > 23 && DateTime.Now.Hour < 7)
     {
         return(new ErrorDataResult <List <Game> >(Messages.MaintenanceTime));
     }
     return(new SuccessDataResult <List <Game> >(_gameDal.GetAll(), Messages.ListedGame));
 }
Beispiel #2
0
 public List <Game> GetAll()
 {
     return(_gameDal.GetAll());
 }
 public List <Game> GetAll()
 {
     // Transactional islemleri ve kontroller
     _loggerService.Log();
     return(_gameDal.GetAll());
 }
Beispiel #4
0
 public IEnumerable <Game> GetAll()
 {
     return(_gameDal.GetAll());
 }
 public IDataResult <List <Game> > GetAll()
 {
     return(new SuccessDataResult <List <Game> >(_gameDal.GetAll()));
 }