public void UpdateGameRented(GameRent gameRented) { Id = gameRented.Id; Game = gameRented.Game; IsActive = gameRented.IsActive; UpdatedOn = DateTime.Now; }
public void AddGamesRent(List <Game> games) { GamesRent = new List <GameRent>(); games.ForEach(game => { var gameRent = new GameRent(); gameRent.AddGameToRent(game); GamesRent.Add(gameRent); }); }