public IHttpActionResult GetByQuery([FromUri] PagedQueryDTO pagedQuery) { using (var uow = ObjectFactory.GetInstance <IUnitOfWork>()) { var results = _containerService.GetByQuery(_security.GetCurrentAccount(uow), pagedQuery); return(Ok(results)); } }