예제 #1
0
        public IHttpActionResult GetPendingPicking(int offset)
        {
            List <WaveStatus> result = null;

            try {
                result = PriIntegration.GetPendingPickingWave(offset);
            } catch (InvalidOperationException invalidOperation) {
                return(BadRequest(invalidOperation.Message));
            } catch (Exception e) {
                return(InternalServerError(e));
            }

            if (result == null)
            {
                return(StatusCode(HttpStatusCode.NoContent));
            }

            else
            {
                return(Ok(result));
            }
        }