public IActionResult Get([FromQuery(Name = "subscriptionId")] string id) { if (id == null) { return(Ok(_subscribeService.FindAll())); } var result = _subscribeService.FindBySubscriptionId(id); if (result == null) { return(NotFound()); } return(Ok(result)); }