コード例 #1
0
        public IActionResult Departure(MovementInputModel movementInput)
        {
            if (this.ModelState.IsValid)
            {
                if (this.messageParser.ParseDepartureMovement(movementInput.Movement))
                {
                    return(this.Redirect("/Messages/OutboundMessages"));
                }
                else
                {
                    return(this.View(movementInput));
                }
            }

            return(this.View(movementInput));
        }
コード例 #2
0
        public IActionResult Arrival(MovementInputModel movementInput)
        {
            if (this.ModelState.IsValid)
            {
                if (this.messageParser.ParseArrivalMovement(movementInput.Movement))
                {
                    return(this.Redirect("/Messages/InboundMessages"));
                }
                else
                {
                    return(this.View(movementInput));
                }
            }

            return(this.View(movementInput));
        }