public async Task <IActionResult> SearchPlaces(string placeTerm, string clientTerm, string addressTerm, int page, int take) { if (placeTerm == null) { placeTerm = ""; } if (clientTerm == null) { clientTerm = ""; } if (addressTerm == null) { addressTerm = ""; } return(Json( await _placesService.GetPlacesListViewModelForCurrentSubscriber( new SubscriberDashboardAjaxSearchViewModel() { AddressTerm = addressTerm.ToLower(), ClientNameTerm = clientTerm.ToLower(), PlaceNameTerm = placeTerm.ToLower(), Page = page - 1, Take = take }))); }