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)); }
private void FindSubscriberById() { IsProgressBarVisible = true; FindSubscriber.IsEnabled = false; var result = subscribeService.FindBySubscriptionId( SubscriptionId); if (result == null) { Message = "Subscription Id Not Found"; SubscribeDomain.Amount = 0; return; } SelectedSubscription = result; Task.Run(() => FetchDues()); }