From 552c53789fb35cb78a6e4de2c6e463e241e90a24 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:24:17 +0800 Subject: [PATCH] 2e2 --- asg_form/Controllers/Teamregistration/RegisterController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/asg_form/Controllers/Teamregistration/RegisterController.cs b/asg_form/Controllers/Teamregistration/RegisterController.cs index 17397e2..079e248 100644 --- a/asg_form/Controllers/Teamregistration/RegisterController.cs +++ b/asg_form/Controllers/Teamregistration/RegisterController.cs @@ -152,6 +152,7 @@ namespace asg_form.Controllers.Teamregistration approvalTime = form.approval_time, status = form.status }; + await sub.SaveChangesAsync(); return Ok(result); } } @@ -209,7 +210,7 @@ namespace asg_form.Controllers.Teamregistration var result = await query.ToListAsync(); - return Ok(new { messages = result }); + return Ok(new { code=200,data = result }); } } }