Пример #1
0
        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());
            }
        }