示例#1
0
        public IHttpActionResult PostNewWaves(GenerateWavesRequest request)
        {
            bool result = false;

            try {
                result = PriIntegration.GerarPickingOrders(request.Filial, request.Serie, request.Encomendas);
            } catch (InvalidOperationException invalidOperation) {
                return(BadRequest(invalidOperation.Message));
            } catch (Exception e) {
                return(InternalServerError(e));
            }


            if (!result)
            {
                return(NotFound());
            }
            else
            {
                return(Ok());
            }
        }