public async Task <IActionResult> CheckCondition(string condition) { if (condition == null) { return(BadRequest()); } int resp = _UserSubData.CheckIfConditionExists(condition); if (resp > 0) { return(Ok("The condition is valid")); } else { return(NotFound()); } }