コード例 #1
0
 private static FooterViewModel CreateFooterViewModel(PortalUIConfiguration configuration)
 {
     try
     {
         FooterViewModel footerViewModel = new FooterViewModel();
         footerViewModel.Content = configuration.AfterPortal;
         return footerViewModel;
     }
     catch (Exception ex)
     {
         KBCustomException kbCustExp = KBCustomException.ProcessException(ex, KBOp.CreateViewModel, KBErrorHandler.GetMethodName(), GeneralResources.CreateViewModelError,
             new KBExceptionData("configuration.BeforePortal", configuration.BeforePortal), new KBExceptionData("configuration.AfterPortal", configuration.AfterPortal));
         throw kbCustExp;
     }
 }
 private FooterViewModel CreateFooterViewModel()
 {
     FooterViewModel footerViewModel = new FooterViewModel();
     footerViewModel.Content = "Footer";
     return footerViewModel;
 }