public string GetSignup() { var myFan = new Models.FanSignup(); using (var c = new ArtistListingController()) { c.Gets(); foreach (var rec in c.Recordset) { var n = new Models.FanSignup.EFanToArtist(); PopulateDerivedFromBase(rec, n); myFan.FanToArtists.Add(n); } } using (var c = new AssociationsController()) { c.Gets(); foreach (var rec in c.Recordset) { var n = new Models.FanSignup.EFanToAssociation(); PopulateDerivedFromBase(rec, n); myFan.FanToAssociations.Add(n); } } using (var c = new RegionsController()) { c.Gets(); foreach (var rec in c.Recordset) { var n = new Models.FanSignup.EFanToRegion(); PopulateDerivedFromBase(rec, n); myFan.FanToRegions.Add(n); } } using (var c = new GenresController()) { c.Gets(); foreach (var rec in c.Recordset) { var n = new Models.FanSignup.EFanToGenre(); PopulateDerivedFromBase(rec, n); myFan.FanToGenres.Add(n); } } myFan.Fan = new Fan(); var xx = JsonConvert.SerializeObject(myFan); return(xx); }