public IActionResult VerifyInventoryUnit(long ixInventoryUnit, string sInventoryUnit) { string validationResponse = ""; if (!_inventoryunitsService.VerifyInventoryUnitUnique(ixInventoryUnit, sInventoryUnit)) { validationResponse = $"InventoryUnit {sInventoryUnit} already exists."; } if (validationResponse != "") { return(Json(validationResponse)); } else { return(Json(true)); } }