title: MVC: Passing model from view to controller on saving IGGrid
body: <p>Hello Stackoverflow community, </p>
  
  <p>I have made a little sample application to illustrate my problem. Im using mvc 5 and the Infragistics Ignite UI igGrid. This is how the page looks like. </p>
  
  <p><a href="https://i.stack.imgur.com/KEtX7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KEtX7.png" alt="My page"></a></p>
  
  <p>My model that I pass to the View is the class Company. </p>
  
  <pre><code>public class Company
  {
       public int ID { get; set; }
       public string CompanyName { get; set; }
       public string Address { get; set; }
       public IQueryable&lt;Employee&gt; EmployeeList { get; set; }
  }
  
  And the Employee Class: 
  
  public class Employee
  {
        public int ID { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
  }
  </code></pre>
  
  <p>This is how my controller looks like</p>
  
  <pre><code>    // GET: Company
      public ActionResult Index()
      {
          Company myCompany = new Company { ID = 1, CompanyName = "Cool Company", Address = "USA" };
          Employee employee1 = new Employee { ID = 10, FirstName = "Christiano", LastName = "Ronaldo" };
          Employee employee2 = new Employee { ID = 11, FirstName = "Sebastian", LastName = "Schweinsteiger" };
  
          List&lt;Employee&gt; employeeList = new List&lt;Employee&gt;();
          employeeList.Add(employee1);
          employeeList.Add(employee2);
          myCompany.EmployeeList = employeeList.AsQueryable();
          return View("Index", myCompany);
  
      }
  
      [HttpPost]
      public ActionResult SaveData()
      {
  
          GridModel gridModel = new GridModel();
          List&lt;Transaction&lt;Employee&gt;&gt; transactions = gridModel.LoadTransactions&lt;Employee&gt;(HttpContext.Request.Form["ig_transactions"]);
          // here im getting the changes of the employee table. This works fine. But how do I get the changes of my company?
  
          foreach (Transaction&lt;Employee&gt; t in transactions)
          {
              //do something.. 
          }
  
          JsonResult result = new JsonResult();
          Dictionary&lt;string, bool&gt; response = new Dictionary&lt;string, bool&gt;();
          response.Add("Success", true);
          result.Data = response;
          return result;
      }
  }
  </code></pre>
  
  <p>and my View looks like this </p>
  
  <p><a href="https://i.stack.imgur.com/FcBhF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FcBhF.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/S4bha.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S4bha.png" alt="enter image description here"></a></p>
  
  <p>I need to save the data from the company and from the employee table after clicking the "save" button. This has to be executed on one button click, since im doing some complex validations. I have no issuse saving the employee table, but i have problems saving the company attributes ( company name &amp; company address). </p>
  
  <p>Thank you very much.</p>