Ejemplo n.º 1
0
        public IActionResult VerifyTax(long ixTax, string sTax)
        {
            string validationResponse = "";

            if (!_taxesService.VerifyTaxUnique(ixTax, sTax))
            {
                validationResponse = $"Tax {sTax} already exists.";
            }
            if (validationResponse != "")
            {
                return(Json(validationResponse));
            }
            else
            {
                return(Json(true));
            }
        }