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