public HttpResponseMessage Get([FromUri] string searchString, [FromUri] int?numberOfRows = null) { FullTextSearchAdressQuery query = new FullTextSearchAdressQuery() { MandatorUids = RequestMandatorUIDs, SeachText = searchString }; try { FullTextSearchAdressQueryHandler handler = new FullTextSearchAdressQueryHandler(query, UnityContainer); return(Request.CreateResponse(handler.Handle())); } catch (Exception e) { return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, e)); } }
public FullTextSearchAdressQueryHandler(FullTextSearchAdressQuery query, IUnityContainer unityContainer) : base(unityContainer) { _query = query; }