public async Task <ActionResult <List <Models.Comment> > > GetComments( [FromQuery(Name = "id")] long?id, [FromQuery(Name = "date")] DateTime?date, [FromQuery(Name = "text")] string?text, [FromQuery(Name = "authorName")] string?authorName, [FromQuery(Name = "authorId")] long?authorId, [FromQuery(Name = "taskId")] long?taskId, [FromQuery(Name = "teamId")] long?teamId ) { var comments = await _context.GetComments( id, date, text, authorId, authorName, taskId, teamId ); return(comments); }