public ActionResult <Pagelist <ApiSecret> > GetApiSecrets([FromQuery] PageInputDto pageInput, int apiresourceId) { if (!ModelState.IsValid) { return(BadRequest(ModelStateErrors)); } var result = _apiresourceService.GetSecrets(pageInput, apiresourceId); return(result); }