public override RepositoryResponse<bool> SaveSubModels(MixPage parent, MixCmsContext _context = null, IDbContextTransaction _transaction = null) { stackVariable0 = new RepositoryResponse<bool>(); stackVariable0.set_IsSucceed(true); V_0 = stackVariable0; ViewModelHelper.HandleResult<Mix.Cms.Lib.ViewModels.MixTemplates.UpdateViewModel>(this.get_View().SaveModel(true, _context, _transaction), ref V_0); if (V_0.get_IsSucceed() && this.get_Master() != null) { ViewModelHelper.HandleResult<Mix.Cms.Lib.ViewModels.MixTemplates.UpdateViewModel>(this.get_Master().SaveModel(true, _context, _transaction), ref V_0); } if (V_0.get_IsSucceed() && this.get_UrlAliases() != null) { V_1 = this.get_UrlAliases().GetEnumerator(); try { while (V_1.MoveNext()) { V_2 = V_1.get_Current(); if (!V_0.get_IsSucceed()) { break; } V_2.set_SourceId(parent.get_Id().ToString()); V_2.set_Type(0); V_2.set_Specificulture(this.get_Specificulture()); ViewModelHelper.HandleResult<Mix.Cms.Lib.ViewModels.MixUrlAliases.UpdateViewModel>(V_2.SaveModel(false, _context, _transaction), ref V_0); } } finally { ((IDisposable)V_1).Dispose(); } } if (V_0.get_IsSucceed()) { V_4 = this.get_ModuleNavs().GetEnumerator(); try { while (V_4.MoveNext()) { V_5 = V_4.get_Current(); V_5.set_PageId(parent.get_Id()); if (!V_5.get_IsActived()) { ViewModelHelper.HandleResult<MixPageModule>(V_5.RemoveModel(false, _context, _transaction), ref V_0); } else { ViewModelHelper.HandleResult<Mix.Cms.Lib.ViewModels.MixPageModules.ReadMvcViewModel>(V_5.SaveModel(false, _context, _transaction), ref V_0); } } } finally { ((IDisposable)V_4).Dispose(); } } return V_0; }