Ejemplo n.º 1
0
        public IActionResult Setting(Guid belongToId)
        {
            var selectedFields = _InterfaceConditionRepository.GetInterfaceConditionByBelongToId(belongToId);

            ViewData["MetaFields"] = _metaFieldRepository.GetListUnDeletedByMetaObjectId(CurrentMetaObjectId);

            ViewData["Id"] = belongToId;

            return(View(selectedFields));
        }
Ejemplo n.º 2
0
        public IActionResult Setting(Guid parentMetaFieldsId)
        {
            var selectedFields = _interfaceFieldsRepository.GetInterfaceFieldsByParentId(parentMetaFieldsId);

            var selectedMetaFieldIds = selectedFields?.Select(t => t.MetaFieldId).ToArray() ?? new Guid[0];

            ViewData["MetaFields"] = _metaFieldRepository.GetListUnDeletedByMetaObjectId(CurrentMetaObjectId)?.Where(t => !selectedMetaFieldIds.Contains(t.Id)).ToList();

            ViewData["Id"] = parentMetaFieldsId;

            return(View(selectedFields));
        }
Ejemplo n.º 3
0
 public IActionResult List(Guid metaObjectId, string metaObjectCode)
 {
     SetCookiesMetaObjectInfo(metaObjectId, metaObjectCode);
     return(View(_metaFieldRepository.GetListUnDeletedByMetaObjectId(metaObjectId)));
 }