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))); } }
public CheckInListDataProvider(GlobalSolusindoDb db, tblM_User user, CheckInSearch checkInSearch) : base(db, user) { this.checkInSearch = checkInSearch; }