示例#1
0
        //[HttpGet, Route("COMMQRY_LookupAllEnumeration")]
        //public List<KeyDescription> LookupAllEnumeration()
        //{
        //    return modelManagementQueryServices.LookupAllEnumeration();
        //}


        //[HttpGet, Route("COMMQRY_LookupAllFileTypes")]
        //public List<KeyDescription> LookupAllFileTypes()
        //{
        //    return modelManagementQueryServices.LookupAllFileTypes();
        //}
        //[HttpGet, Route("COMMQRY_LookupFileTypesByParent/{parentTypeId}")]
        //public List<KeyDescription> LookupFileTypesByParent(string parentTypeId)
        //{
        //    return modelManagementQueryServices.LookupFileTypesByParent(parentTypeId);
        //}
        //[HttpGet, Route("COMMQRY_LookupRoleTypes")]
        //public List<KeyDescription> LookupRoleTypes()
        //{
        //    return modelManagementQueryServices.LookupRoleTypes();
        //}

        //[HttpGet, Route("COMMQRY_LookupStatusTypes")]
        //public List<KeyDescription> LookupStatusTypes()
        //{
        //    return modelManagementQueryServices.LookupStatusTypes();
        //}

        //[HttpPost, Route("ListGeos")]
        //public QueryResult ListGeos(ListGeos listGeos)
        //{
        //    return InvokeQuery(listGeos);
        //}

        //[HttpPost, Route("LookupCategoryType")]
        //public QueryResult LookupCategoryType(LookupCategoryType query)
        //{
        //    return InvokeQuery(query);
        //}

        //[HttpPost, Route("LookupEnum")]
        //public QueryResult LookupEnum(LookupEnum query)
        //{
        //    return InvokeQuery(query);
        //}

        #endregion

        //#region CategoryQuery
        //[HttpGet, Route("CATGQRY_ListCategory/{personId}")]
        //public List<CategoryQueryModel> ListCategory(string personId)
        //{
        //    return modelManagementQueryServices.ListCategory(personId);
        //}
        //[HttpGet, Route("CATGQRY_EditCategory/{categoryId}")]
        //public CategoryQueryModel EditCategory(string categoryId)
        //{
        //    return modelManagementQueryServices.EditCategory(categoryId);
        //}
        //#endregion

        //#region ContactQuery
        //[HttpGet, Route("CONTACTQRY_ListContactInformation/{personId}")]
        //public List<ContactInformationListModel> ListContactInformation(string personId)
        //{
        //    return modelManagementQueryServices.ListContactInformation(personId);
        //}
        //[HttpGet, Route("CONTACTQRY_EditContactInformation/{contactInfoId}")]
        //public ContactInformationListModel EditContactInformation(string contactInfoId)
        //{
        //    return modelManagementQueryServices.EditContactInformation(contactInfoId);
        //}
        //#endregion


        private QueryResult InvokeQuery(IQuery query)
        {
            return(_modelManagementQueryServices.InvokeQuery(query));
        }
 public void EditPersonalInfoTest()
 {
     var editPesonalInfo = new EditPersonalInfoQuery
     {
         PersonId = "ef0f4954-48d1-4513-a992-a59de31ef25e"
     };
     var result = _queryService.InvokeQuery(editPesonalInfo);
 }