public IActionResult GetNumerology(string constellation, int?number) { if (string.IsNullOrEmpty(constellation) || number == null) { return(BadRequest()); } var result = _service.GetLifeNumberData(constellation, (int)number); return(result != null?Ok(result.Info) : Problem()); }