Example #1
0
 public IResult Update(Game entity)
 {
     if (DateTime.Now.Hour > 23 && DateTime.Now.Hour < 7)
     {
         return(new ErrorResult(Messages.MaintenanceTime));
     }
     _gameDal.Update(entity);
     return(new SuccessResult(Messages.UpdatedGame));
 }
Example #2
0
 public void Update(Game game)
 {
     _gameDal.Update(game);
 }
Example #3
0
 public void Update(Game game)
 {
     // Transactional islemleri ve kontroller
     _gameDal.Update(game);
     _loggerService.Log();
 }
Example #4
0
 public int Update(Game game)
 {
     return(_gameDal.Update(game));
 }
Example #5
0
 public void UpdateGame(Games games, Player player)
 {
     _promotionService.UpdatePromotion("20% discount available for you", "50% discount available for you");
     _gameDal.Update(games);
     Console.WriteLine(player.PlayerName + " : " + games.GameName + " game updated.");
 }
Example #6
0
 public IResult Update(Game game)
 {
     _gameDal.Update(game);
     return(new SuccessResult());
 }