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)); }
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)); }