Store LINQ result into view-model refereeing to multiple class objects instead of storing LINQ result in var
<p>I have linq statement that gives three class object data </p>

<p>1- appForm
2- ebsSync
3- SyncAuditLog</p>

<pre><code>var _AppForms2 = (from appForm in _uof.Web_AppFormsRepository.GetAll()
                          join syncAuditLog in (_uof.Web_SyncAuditLogRepository.GetAll().
                                                 Where(sal =&gt; sal.LOG_STATUS.Equals("EP") &amp;&amp;
                                                       sal.LOOKUP_ID != null &amp;&amp;
                                                       sal.ID == maxAuditID)
                                                 .Select(shortListedAuditLog =&gt; new { shortListedAuditLog })) on appForm.SUBMISSION_ID equals syncAuditLog.shortListedAuditLog.SUBMISSION_ID
                          join ebsSync in _uof.Web_EBS_SyncRepository.GetAll() on appForm.SUBMISSION_ID equals ebsSync.SUBMISSION_ID
                          select new {appForm , ebsSync, syncAuditLog }).ToList();
</code></pre>

<p><a href="https://i.stack.imgur.com/rjtXB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rjtXB.png" alt="enter image description here"></a></p>

<p>I want to store this LINQ query result into viewModel as instead of 'var _AppForms';</p>

<pre><code> public class WebSyncSummaryEntity
{
    public List&lt;Web_AppFormsEntity&gt; AppFormsEntity { get; set; }

    public List&lt;Web_EBS_SyncEntity&gt; EBS_SyncEntity { get; set; }

    public List&lt;Web_SyncAuditLogEntity&gt; SyncAuditLogEntity { get; set; }
}
</code></pre>

<h2>Need to fix here!</h2>

<pre><code> public List&lt;WebSyncSummaryEntity&gt; GetWebSyncSummary()
    {
        List&lt;WebSyncSummaryEntity&gt; _AppForms = null;

        using (var _uof = new UCAS_WebSync_AdminTool_UOF())
        {

            var maxAuditID = (from sal in _uof.Web_SyncAuditLogRepository.GetAll().Where(
                                                                                   sal =&gt; sal.LOG_STATUS.Equals("EP") &amp;&amp;
                                                                                   sal.LOOKUP_ID != null)
                              select sal).Max(x =&gt; x.ID);


   _AppForms = (from appForm in _uof.Web_AppFormsRepository.GetAll()
                          join syncAuditLog in (_uof.Web_SyncAuditLogRepository.GetAll().
                                                 Where(sal =&gt; sal.LOG_STATUS.Equals("EP") &amp;&amp;
                                                       sal.LOOKUP_ID != null &amp;&amp;
                                                       sal.ID == maxAuditID)
                                                 .Select(shortListedAuditLog =&gt; new { shortListedAuditLog })) on appForm.SUBMISSION_ID equals syncAuditLog.shortListedAuditLog.SUBMISSION_ID
                          join ebsSync in _uof.Web_EBS_SyncRepository.GetAll() on appForm.SUBMISSION_ID equals ebsSync.SUBMISSION_ID
                          select new {appForm , ebsSync, syncAuditLog }).ToList();

            var test = "d";
        }

        return _AppForms;
    }
</code></pre>