Exemple #1
0
        public IActionResult VerifyInboundOrderLine(long ixInboundOrderLine, string sInboundOrderLine)
        {
            string validationResponse = "";

            if (!_inboundorderlinesService.VerifyInboundOrderLineUnique(ixInboundOrderLine, sInboundOrderLine))
            {
                validationResponse = $"InboundOrderLine {sInboundOrderLine} already exists.";
            }
            if (validationResponse != "")
            {
                return(Json(validationResponse));
            }
            else
            {
                return(Json(true));
            }
        }