diff --git a/asg_form/Controllers/Team/Team_http.cs b/asg_form/Controllers/Team/Team_http.cs index aeb81c3..b84b69e 100644 --- a/asg_form/Controllers/Team/Team_http.cs +++ b/asg_form/Controllers/Team/Team_http.cs @@ -210,7 +210,7 @@ namespace asg_form.Controllers.Team public class TeamFind { public string teamName { get; set; } - public List roleNames { get; set; } + public List roles { get; set; } } [Route("api/v3/form/all")] @@ -257,7 +257,7 @@ namespace asg_form.Controllers.Team .Select(g => new TeamFind { teamName = g.Key.team_name, - roleNames = g.Select(x => x.role_name).ToList() + roles = g.Select(x => x.role_name).ToList() }) .Skip((page - 1) * limit) .Take(limit)