public CustomersMainViewModel(ICustomersHomeViewModel customersHomeViewModel, ISearchHomeViewModel searchHomeViewModel, IAuthenticationContext authContext) { ViewTitle = new ViewTitleBase() { Title = "Cases", SubTitle = "CUSTOMER SERVICE" }; SubItems = new List<ItemTypeHomeTab> { new ItemTypeHomeTab { IdTab = NavigationNames.HomeName, Caption = "Cases", ViewModel = customersHomeViewModel } }; if (authContext.CheckPermission(PredefinedPermissions.CustomersSearchCases)) { SubItems.Add(new ItemTypeHomeTab { IdTab = NavigationNames.HomeNameSearch, Caption = "Search", ViewModel = searchHomeViewModel }); } CurrentTab = SubItems[0]; }
public CustomersMainViewModel(ICustomersHomeViewModel customersHomeViewModel, ISearchHomeViewModel searchHomeViewModel, IAuthenticationContext authContext) { ViewTitle = new ViewTitleBase() { Title = "Cases", SubTitle = "Customer Service".Localize() }; SubItems = new List <ItemTypeHomeTab> { new ItemTypeHomeTab { IdTab = NavigationNames.HomeName, Caption = "Cases", Category = NavigationNames.ModuleName, ViewModel = customersHomeViewModel } }; if (authContext.CheckPermission(PredefinedPermissions.CustomersSearchCases)) { SubItems.Add(new ItemTypeHomeTab { IdTab = NavigationNames.HomeNameSearch, Caption = "Search", Category = NavigationNames.ModuleName, ViewModel = searchHomeViewModel }); } CurrentTab = SubItems[0]; }