From 5779ce853d437fc665e95722b274ac1074b93835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=82=9C=E7=BF=94?= <2307953404@qq.com> Date: Mon, 16 Sep 2024 22:14:09 +0800 Subject: [PATCH] 11 --- .../Controllers/Teamregistration/RegisterController.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/asg_form/Controllers/Teamregistration/RegisterController.cs b/asg_form/Controllers/Teamregistration/RegisterController.cs index 87ca0aa..17397e2 100644 --- a/asg_form/Controllers/Teamregistration/RegisterController.cs +++ b/asg_form/Controllers/Teamregistration/RegisterController.cs @@ -209,12 +209,7 @@ namespace asg_form.Controllers.Teamregistration var result = await query.ToListAsync(); - if (result.Count == 0) - { - return (new { }); - } - - return (result); + return Ok(new { messages = result }); } } }