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)); }
public void Update(Game game) { _gameDal.Update(game); }
public void Update(Game game) { // Transactional islemleri ve kontroller _gameDal.Update(game); _loggerService.Log(); }
public int Update(Game game) { return(_gameDal.Update(game)); }
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()); }