public async Task <ActionResult <dynamic> > GetTeams( [FromQuery(Name = "id")] long?id, [FromQuery(Name = "date")] DateTime?date, [FromQuery(Name = "title")] string?title, [FromQuery(Name = "name")] string?name, [FromQuery(Name = "password")] string?password ) { if (password != null) { return(await _context.IsAuth(name, password)); } var teams = await _context.GetTeams( id, date, name, title ); return(teams); }