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 }); } } }