public async Task <IActionResult> GetRecipes([FromQuery] int startat, [FromQuery] int quantity, [FromQuery] string fieldFilter, [FromQuery] string fieldValue, [FromQuery] string orderField, [FromQuery] string order)
        {
            var productionOrders = await _productionOrderService.getProductionOrders(startat, quantity, fieldFilter,
                                                                                     fieldValue, orderField, order);

            return(Ok(productionOrders));
        }
        public async Task <IActionResult> Get([FromQuery] int startat, [FromQuery] int quantity, [FromQuery] string fieldFilter, [FromQuery] string fieldValue, [FromQuery] string orderField, [FromQuery] string order)
        {
            List <string> fields = new List <string> ();

            fields.Add(fieldFilter + "," + fieldValue);
            var orderFieldEnum = ProductionOrderFields.Default;

            Enum.TryParse(orderField, true, out orderFieldEnum);
            var orderEnumValue = OrderEnum.Ascending;

            Enum.TryParse(order, true, out orderEnumValue);
            if (quantity == 0)
            {
                quantity = 50;
            }
            var(productionOrders, total) = await _productionOrderService.getProductionOrders(startat, quantity,
                                                                                             fields, orderFieldEnum, orderEnumValue);

            return(Ok(new { values = productionOrders, total = total }));
        }