public static LeagueModel GetModel(League league) { return(new LeagueModel { ApiId = league.Id, ShortName = league.ShortName, FullName = league.FullName, FlagURL = league.FlagURL, Region = RegionFactory.GetModel(league.Region) }); }
public static LeagueModel GetModel(int apiId, string shortName, string fullName, string flagURL, Region region) { return(new LeagueModel { ApiId = apiId, ShortName = shortName, FullName = fullName, Region = RegionFactory.GetModel(region), FlagURL = flagURL, }); }