Exemple #1
0
        public Response <OutboundInstructionsResponse> AddInstructions(string Ids, string WorkStation, string ReleatedType, int Priority, string UserName)
        {
            Response <OutboundInstructionsResponse> response = new Response <OutboundInstructionsResponse>()
            {
                Result = new OutboundInstructionsResponse()
            };
            string message = "";

            try
            {
                ShelvesManagementAccessor accessor = new ShelvesManagementAccessor();
                message = accessor.AddInstructions(Ids, WorkStation, ReleatedType, Priority, UserName);
                if (message == "")
                {
                    response.IsSuccess = true;
                }
                else
                {
                    response.IsSuccess      = false;
                    response.SuccessMessage = message;
                }
            }
            catch (Exception ex)
            {
                LogError(ex);
                response.Exception = ex;
                response.IsSuccess = false;
                response.ErrorCode = ErrorCode.Technical;
            }

            return(response);
        }