public override void ExpandView(MixCmsContext _context = null, IDbContextTransaction _transaction = null) { if (Id > 0) { Fields = Lib.ViewModels.MixAttributeFields.UpdateViewModel .Repository.GetModelListBy(a => a.AttributeSetId == Id, _context, _transaction).Data?.OrderBy(a => a.Priority).ToList(); FormView = Lib.ViewModels.MixTemplates.UpdateViewModel.GetTemplateByPath(FormTemplate, Specificulture, _context, _transaction).Data; EdmView = Lib.ViewModels.MixTemplates.UpdateViewModel.GetTemplateByPath(EdmTemplate, Specificulture, _context, _transaction).Data; } else { Fields = new List <Lib.ViewModels.MixAttributeFields.UpdateViewModel>(); } }
public async Task <RepositoryResponse <Lib.ViewModels.MixTemplates.UpdateViewModel> > Save( [FromBody] Lib.ViewModels.MixTemplates.UpdateViewModel model) { return(await base.SaveAsync <UpdateViewModel>(model, true)); }