public ActionResult <AccountFilterResponse> Filter() { try { var query = RequestParser.ParseFilter(Request.QueryString.Value); if (!RequestParser.ValidateFilterQuery(query)) { return(BadRequest()); } var accounts = _database.FilterQuery(query); return(new AccountFilterResponse(accounts, query)); } catch (Exception ex) { _logger.Error("Unknown error", ex); throw; } }