public IActionResult VerifyInventoryLocation(long ixInventoryLocation, string sInventoryLocation) { string validationResponse = ""; if (!_inventorylocationsService.VerifyInventoryLocationUnique(ixInventoryLocation, sInventoryLocation)) { validationResponse = $"InventoryLocation {sInventoryLocation} already exists."; } if (validationResponse != "") { return(Json(validationResponse)); } else { return(Json(true)); } }