public async Task <List <DatabaseResultModel> > ExecuteCustomOperation(string operation) { logService.Log($"Executing custom operation on the database: {operation}", LogType.Admin); var jsonResult = await databaseService.ExecuteCustomQueryWithReturnValue(operation); var result = databaseService.ConvertResultToModel(jsonResult); resultService.AddCustomQueryResult(operation, result); return(result); }