public List <ProductionViewModel> GetProduction(ProductionParameterViewModel par)
        {
            List <ProductionViewModel> list;

            list = new List <ProductionViewModel>();
            return(list);
        }
Example #2
0
        public ActionResult GetProduction(
            [FromBody] ProductionParameterViewModel prodParameter
            )
        {
            // object result = "c" + prodParameter.date;
            // if (prodParameter.squares + prodParameter.triangles +
            // prodParameter.rectangles + prodParameter.circles < _TOTAL_FIGURES) {
            //     return StatusCode(500, "dd");
            // }
            // return Ok(result);

            var result = _productionAPIService.GetProduction(prodParameter);

            if (result == null)
            {
                return(new NotFoundResult());
            }

            return(new ObjectResult(result));
        }