Example #1
0
        public virtual IActionResult Put([FromBody] InventoryOrderCreation inventoryOrderCreation)
        {
            //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
            // return StatusCode(200);


            throw new NotImplementedException();
        }
Example #2
0
        public virtual IActionResult Create([FromBody] InventoryOrderCreation inventoryOrderCreation)
        {
            //TODO: Uncomment the next line to return response 201 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
            // return StatusCode(201, default(InventoryOrder));

            string exampleJson = null;

            exampleJson = "{\n  \"creator\" : \"creator\",\n  \"reportDate\" : \"2000-01-23T04:56:07.000+00:00\",\n  \"created\" : \"2000-01-23T04:56:07.000+00:00\",\n  \"hasOnlyUntaggedAssets\" : true,\n  \"inventoryVariantName\" : \"inventoryVariantName\",\n  \"description\" : \"description\",\n  \"assignees\" : [ {\n    \"id\" : \"id\",\n    \"assignee\" : \"assignee\",\n    \"inventoryOrderId\" : 6\n  }, {\n    \"id\" : \"id\",\n    \"assignee\" : \"assignee\",\n    \"inventoryOrderId\" : 6\n  } ],\n  \"id\" : 0,\n  \"status\" : 1\n}";

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

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