Exemple #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));
 }
Exemple #2
0
 public void Update(Game game)
 {
     _gameDal.Update(game);
 }
 public void Update(Game game)
 {
     // Transactional islemleri ve kontroller
     _gameDal.Update(game);
     _loggerService.Log();
 }
Exemple #4
0
 public int Update(Game game)
 {
     return(_gameDal.Update(game));
 }
Exemple #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.");
 }
 public IResult Update(Game game)
 {
     _gameDal.Update(game);
     return(new SuccessResult());
 }