コード例 #1
0
        public FormResponseDetail GetFormResponseByResponseId(IResponseContext responseContext)
        {
            var response           = _formResponseCRUD.GetHierarchicalResponseListByResponseId(responseContext);
            var formResponseDetail = response.ToHierarchicalFormResponseDetail();

            //var formResponseDetail = response[0].ToFormResponseDetail();
            return(formResponseDetail);
        }
コード例 #2
0
        public string GetResponseInfoData(IResponseContext responseContext)
        {
            CosmosDBCRUD formResponseCRUD       = new CosmosDBCRUD();
            var          formResponseProperties = formResponseCRUD.GetHierarchicalResponseListByResponseId(responseContext, /*includeDeletedRecords=*/ true, /*excludeInProcessRecords=*/ true);
            var          formResponseDetail     = formResponseProperties != null?formResponseProperties.ToHierarchicalFormResponseDetail() : null;

            string response = JsonConvert.SerializeObject(formResponseDetail);

            return(response);
        }