public virtual IActionResult Post([FromBody] InventoryAssetFullTextAndPropertySearch inventoryAssetFullTextAndPropertySearch)
        {
            //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
            // return StatusCode(200, default(PagedResultInventoryOrderAssetResource));

            string exampleJson = null;

            exampleJson = "{\n  \"pageCount\" : 5,\n  \"lastRowOnPage\" : 9,\n  \"pageSize\" : 5,\n  \"firstRowOnPage\" : 7,\n  \"rowCount\" : 2,\n  \"currentPage\" : 1,\n  \"results\" : [ {\n    \"commentLocation\" : \"commentLocation\",\n    \"commentCostCenter\" : \"commentCostCenter\",\n    \"checked\" : true,\n    \"commentPlant\" : \"commentPlant\",\n    \"commentOther\" : \"commentOther\",\n    \"asset\" : {\n      \"tagId\" : \"tagId\",\n      \"capitalisationDate\" : \"2000-01-23T04:56:07.000+00:00\",\n      \"deactivatedOn\" : \"2000-01-23T04:56:07.000+00:00\",\n      \"typeName\" : \"typeName\",\n      \"description\" : \"description\",\n      \"acquisitionValue\" : 0.8008281904610115,\n      \"assetClass\" : \"assetClass\",\n      \"isUntaggable\" : true,\n      \"inventoryNumber\" : \"inventoryNumber\",\n      \"assetNumber\" : \"assetNumber\",\n      \"isDeactivated\" : true,\n      \"vendor\" : \"vendor\",\n      \"lastInventoryDate\" : \"2000-01-23T04:56:07.000+00:00\",\n      \"companyCodeCurrency\" : \"companyCodeCurrency\",\n      \"companyCode\" : \"companyCode\",\n      \"creator\" : \"creator\",\n      \"serialNumber\" : \"serialNumber\",\n      \"quantity\" : 6.027456183070403,\n      \"created\" : \"2000-01-23T04:56:07.000+00:00\",\n      \"costCenter\" : \"costCenter\",\n      \"shareTags\" : true,\n      \"subNumber\" : \"subNumber\",\n      \"room\" : \"room\",\n      \"secondTagId\" : \"secondTagId\",\n      \"unit\" : \"unit\",\n      \"plant\" : \"plant\",\n      \"location\" : \"location\",\n      \"comment\" : \"comment\",\n      \"lastModified\" : \"2000-01-23T04:56:07.000+00:00\",\n      \"assetSuperNumber\" : \"assetSuperNumber\"\n    },\n    \"inventoryOrderId\" : 0,\n    \"status\" : 6\n  }, {\n    \"commentLocation\" : \"commentLocation\",\n    \"commentCostCenter\" : \"commentCostCenter\",\n    \"checked\" : true,\n    \"commentPlant\" : \"commentPlant\",\n    \"commentOther\" : \"commentOther\",\n    \"asset\" : {\n      \"tagId\" : \"tagId\",\n      \"capitalisationDate\" : \"2000-01-23T04:56:07.000+00:00\",\n      \"deactivatedOn\" : \"2000-01-23T04:56:07.000+00:00\",\n      \"typeName\" : \"typeName\",\n      \"description\" : \"description\",\n      \"acquisitionValue\" : 0.8008281904610115,\n      \"assetClass\" : \"assetClass\",\n      \"isUntaggable\" : true,\n      \"inventoryNumber\" : \"inventoryNumber\",\n      \"assetNumber\" : \"assetNumber\",\n      \"isDeactivated\" : true,\n      \"vendor\" : \"vendor\",\n      \"lastInventoryDate\" : \"2000-01-23T04:56:07.000+00:00\",\n      \"companyCodeCurrency\" : \"companyCodeCurrency\",\n      \"companyCode\" : \"companyCode\",\n      \"creator\" : \"creator\",\n      \"serialNumber\" : \"serialNumber\",\n      \"quantity\" : 6.027456183070403,\n      \"created\" : \"2000-01-23T04:56:07.000+00:00\",\n      \"costCenter\" : \"costCenter\",\n      \"shareTags\" : true,\n      \"subNumber\" : \"subNumber\",\n      \"room\" : \"room\",\n      \"secondTagId\" : \"secondTagId\",\n      \"unit\" : \"unit\",\n      \"plant\" : \"plant\",\n      \"location\" : \"location\",\n      \"comment\" : \"comment\",\n      \"lastModified\" : \"2000-01-23T04:56:07.000+00:00\",\n      \"assetSuperNumber\" : \"assetSuperNumber\"\n    },\n    \"inventoryOrderId\" : 0,\n    \"status\" : 6\n  } ]\n}";

            var example = exampleJson != null
            ? JsonConvert.DeserializeObject <PagedResultInventoryOrderAssetResource>(exampleJson)
            : default(PagedResultInventoryOrderAssetResource);

            //TODO: Change the data returned
            return(new ObjectResult(example));
        }
Exemplo n.º 2
0
        public virtual IActionResult Post([FromBody] InventoryAssetFullTextAndPropertySearch inventoryAssetFullTextAndPropertySearch)
        {
            //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
            // return StatusCode(200, default(InventoryOrderStatistic));

            string exampleJson = null;

            exampleJson = "{\n  \"broken\" : 5,\n  \"total\" : 6,\n  \"default\" : 1,\n  \"transferred\" : 3,\n  \"missed\" : 5,\n  \"active\" : 2,\n  \"id\" : 0,\n  \"remaining\" : 7,\n  \"research\" : 9\n}";

            var example = exampleJson != null
            ? JsonConvert.DeserializeObject <InventoryOrderStatistic>(exampleJson)
            : default(InventoryOrderStatistic);

            //TODO: Change the data returned
            return(new ObjectResult(example));
        }