public PositionListModel Get(PositionSearchFilter searchFilter)
        {
            PositionListFormData       formData     = new PositionListFormData();
            SearchResult <PositionDTO> searchResult = positionSearch.GetDataByFilter(searchFilter);

            return(new PositionListModel()
            {
                FormData = formData,
                SearchResult = searchResult
            });
        }
        public IHttpActionResult Search([FromUri] PositionSearchFilter filter)
        {
            string accessType = "Position_ViewAll";

            ThrowIfUserCannotAccess(accessType);
            if (filter == null)
            {
                throw new KairosException("Missing search filter parameter");
            }

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