title: Lambda or LINQ for result
body: <p>I have got a Feedback table from the user and feedback class contains steps.</p>
  <p>Steps can be Achieved (A), Didn't Achieve (DA) or Achieved with Prompt (AWP)</p>
  <pre><code>Name    Step1             Step2         Step3         Step4                 
  -----------------------------------------------------------------------
  Zoinal  A                  AWP            A             DA  
  Oomesh  A                  DA             DA            DA  
  Marta   A                  DA             A             AWP 
  MrBean  AWP                AWP            DA            A
  </code></pre>
  <p>BUT also wanted to show the number of each different achievement status. In the table something like this:</p>
  <pre><code>Name    Step1               Step2         Step3           Step4  
  summery:  A=3,AWP=1,DA=0  A=0,AWP=2,DA=2  A=2,AWP=0,DA=2  A=1,AWP=1,DA=2                
  -----------------------------------------------------------------------
  Zoinal  A                  AWP            A              DA 
  Oomesh  A                  DA             DA            DA  
  Marta   A                  DA             A             AWP 
  MrBean  AWP                AWP            DA            A
  
  
  public class FeedbackModel
  {
      public int FeedBackID { get; set; }
      public List&lt;FeedbackStepModel&gt; FeedbackSteps { get; set; }
  }
  
  public class FeedbackStepModel
  {
      [Key]
      public int FeedbackStepID { get; set; }
      public int FeedbackID { get; set; } = 0;   
      public int StepNumber { get; set; }
      public string StepDetail { get; set; }
      public string AchievementStatus { get; set; }
      public virtual FeedbackModel FeedBackModel { get; set; }
  }
  </code></pre>
  <p>I tried to do</p>
  <pre><code>var fullList = feedbackRepository.Feedbacks;
  </code></pre>
  <p>and two &quot;for each&quot; loops</p>
  <pre><code>foreach (var item in fullList)
  {
       foreach (var step in item.FeedbackSteps)
       {
           //               
       }
  }
  </code></pre>
  <p>I am sure there is an easy way to do it with LINQ. Can anyone help, please.</p>