public CheckInListModel Get(CheckInSearchFilter searchFilter) { CheckInListFormData formData = new CheckInListFormData(); SearchResult <CheckInDTO> searchResult = checkInSearch.GetDataByFilter(searchFilter); return(new CheckInListModel() { FormData = formData, SearchResult = searchResult }); }
public IHttpActionResult Search([FromUri] CheckInSearchFilter filter) { //string accessType = "CheckIn_ViewAll"; //ThrowIfUserHasNoRole(accessType); if (filter == null) { throw new KairosException("Missing search filter parameter"); } using (var checkInSearch = new CheckInSearch(Db)) { var data = checkInSearch.GetDataByFilter(filter); return(Ok(new SuccessResponse(data))); } }