public IHttpActionResult Search([FromUri] KotaSearchFilter filter) { ThrowIfUserHasNoRole(readRole); if (filter == null) { throw new KairosException("Missing search filter parameter"); } using (var kotaSearch = new KotaSearch(Db)) { var data = kotaSearch.GetDataByFilter(filter); return(Ok(new SuccessResponse(data))); } }
public KotaListDataProvider(GlobalSolusindoDb db, tblM_User user, KotaSearch kotaSearch) : base(db, user) { this.kotaSearch = kotaSearch; }