Beispiel #1
0
        public IHttpActionResult Search([FromUri] AsetHistoriSearchFilter filter)
        {
            ThrowIfUserHasNoRole(readRole);
            if (filter == null)
            {
                throw new KairosException("Missing search filter parameter");
            }

            using (var asetHistoriSearch = new AsetHistoriSearch(Db))
            {
                var data = asetHistoriSearch.GetDataByFilter(filter);
                return(Ok(new SuccessResponse(data)));
            }
        }
Beispiel #2
0
 public AsetHistoriListDataProvider(GlobalSolusindoDb db, tblM_User user, AsetHistoriSearch asetHistoriSearch) : base(db, user)
 {
     this.asetHistoriSearch = asetHistoriSearch;
 }