public static InstantGamesSummaryViewModel FromInstantGame(InstantGame instantGame) { return(new InstantGamesSummaryViewModel { Id = instantGame.InstantGameId, GameNo = instantGame.GameNo, Name = instantGame.Name, TicketAmount = instantGame.TicketAmount }); }
public void UpdateInstantGame(InstantGame game) { game.Name = Name; game.GameNo = GameNo; game.TicketAmount = TicketAmount; }