public MainVM()
 {
     AnonimousUserMenu();
     CommonVM  = new CommonVM(this);
     LoggedIn += (userId, isAdmin) =>
     {
         if (isAdmin)
         {
             CommonVM.CurrentRole = Roles.Admin;
             AdminMenu();
         }
         else
         {
             CommonVM.CurrentRole = Roles.Authorized;
             AuthorizedUserMenu(userId);
         }
         Content = MenuItems[0].GetContent;
         OnPropertyChanged("CurrentUser");
         OnPropertyChanged("MenuItems");
     };
     LoginVM = new LoginVM(this);
     Content = MenuItems[0].GetContent;
 }
 public BaseWithCommonVM(MainVM mainVM)
 {
     CommonVM = mainVM.CommonVM;
 }