public override void ExpandView(MixCmsContext _context = null, IDbContextTransaction _transaction = null) { var getCategory = MixPortalPages.ReadViewModel.Repository.GetSingleModel(p => p.Id == Id , _context: _context, _transaction: _transaction ); if (getCategory.IsSucceed) { Page = getCategory.Data; } }
public override void ExpandView(MixCmsContext _context = null, IDbContextTransaction _transaction = null) { Page = MixPortalPages.ReadViewModel.Repository.GetSingleModel(p => p.Id == PageId).Data; Parent = MixPortalPages.ReadViewModel.Repository.GetSingleModel(p => p.Id == ParentId).Data; }