public QuranSearchResult Search(QuranSearchRequest request) { if (request.SearchInEnglish) { return(SearchInEnglish(request.SearchText)); } //var reverseTransliterateDictionary = Transliteration.ToDictionary(x => x.Value, y => y.Key); var searchText = request.SearchText; return(SearchInArabic(searchText)); }
public QuranSearchResult Search([FromBody] QuranSearchRequest request) { return(_service.Search(request)); }
public HttpResponseMessage Search(QuranSearchRequest request) { return(Request.CreateResponse(HttpStatusCode.OK, _service.Search(request))); }