public IActionResult OnGet() { string StackholderId = User.Identity.Name; AlldeviceInfo = _DeviceData.GetAllDevicesStack(StartDate, EndDate, StackholderId); AllSubscribers = _SubscriberData.GetAllSubscribersStack(StartDate, EndDate, StackholderId); billingsRealData = _BillingData.GetAllBillingsStack(StartDate, EndDate, StackholderId); return(Page()); }
public IActionResult OnGet() { string StackholderId = User.Identity.Name; if (StackholderId != null) { AllSubscribers = _SubscriberData.GetAllSubscribersStack(StartDate, EndDate, StackholderId); } else if ((SearchTerm != null) || (StartDate != null) || (EndDate != null)) { AllSubscribers = _SubscriberData.Search(SearchTerm, StartDate, EndDate); } return(Page()); }