title: return tuple result in async method .net core
body: <p>I have an async method. This method get list of 10 row from database and getting total count of query result. Because I'm using for grid pagination. So, I'm using tuple which one element is List and other element is count of total number. But I can't return result because of compilation error. How i can do this?</p>
  
  <pre><code>public async Task&lt;Tuple&lt;List&lt;IdNamePair&gt;, int&gt; GetStudents(QueryFilter queryObject)
  {
      var query = studentEntity.Select(p =&gt; new IdNamePair
      {
          ID = p.ID.ToString(),
          Name = p.StudentNameSurname
      }).ToListAsync();
  
      int totalCount = await query.CountAsync();
  
      query = query.ApplyPaging(queryObject);//like Skip(20).Take(10)
  
      var students = query.ToListAsync();
  
      return await new Tuple&lt;List&lt;IdNamePair&gt;, int&gt;(students, totalCount); //ERROR
  }
  </code></pre>