public IDataResult <Game> Get(int id) { if (DateTime.Now.Hour > 23 && DateTime.Now.Hour < 7) { return(new ErrorDataResult <Game>(Messages.MaintenanceTime)); } return(new SuccessDataResult <Game>(_gameDal.Get(p => p.GameId == id), Messages.HasShown)); }
public Game Get(Game game) { return(_gameDal.Get(g => g.Id == game.Id)); }