public DeliveryAreaListModel Get(DeliveryAreaSearchFilter searchFilter)
        {
            DeliveryAreaListFormData       formData     = new DeliveryAreaListFormData();
            SearchResult <DeliveryAreaDTO> searchResult = deliveryAreaSearch.GetDataByFilter(searchFilter);

            return(new DeliveryAreaListModel()
            {
                FormData = formData,
                SearchResult = searchResult
            });
        }
        public IHttpActionResult Search([FromUri] DeliveryAreaSearchFilter filter)
        {
            ThrowIfUserHasNoRole(readRole);
            if (filter == null)
            {
                throw new KairosException("Missing search filter parameter");
            }

            using (var deliveryAreaSearch = new DeliveryAreaSearch(Db))
            {
                var data = deliveryAreaSearch.GetDataByFilter(filter);
                return(Ok(new SuccessResponse(data)));
            }
        }