public static T GetPage <T>(BaseViewModel model, bool singleton = true) where T : Page { var page = GetPage(model, singleton); return((T)page); }