コード例 #1
0
        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)));
            }
        }
コード例 #2
0
 public CheckInListDataProvider(GlobalSolusindoDb db, tblM_User user, CheckInSearch checkInSearch) : base(db, user)
 {
     this.checkInSearch = checkInSearch;
 }