public static GamesDO MapBoToDo(GamesBO from) { GamesDO to = new GamesDO(); to.GameID = from.GameID; to.GameName = from.GameName; to.System = from.System; to.Genre = from.Genre; to.ReleaseDate = from.ReleaseDate; to.Price = from.Price; return(to); }
public static List <GamesBO> MapDoToBo(List <GamesDO> from) { List <GamesBO> to = new List <GamesBO>(); if (from != null) { foreach (GamesDO item in from) { GamesBO mappedItems = MapDoToBo(item); to.Add(mappedItems); } } return(to); }