Example #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));
 }
Example #2
0
 public List <Game> GetAll()
 {
     return(_gameDal.GetAll());
 }
Example #3
0
 public List <Game> GetAll()
 {
     // Transactional islemleri ve kontroller
     _loggerService.Log();
     return(_gameDal.GetAll());
 }
Example #4
0
 public IEnumerable <Game> GetAll()
 {
     return(_gameDal.GetAll());
 }
Example #5
0
 public IDataResult <List <Game> > GetAll()
 {
     return(new SuccessDataResult <List <Game> >(_gameDal.GetAll()));
 }