// public IActionResult AddTestRecords() { // Comp 1 Company company = new Company() { Name = "Test 123" + Guid.NewGuid().ToString(), Address = "test address", City = "test city", PostalCode = "test postalCode", State = "test state", Employees = new List <Employee>() }; // Emp 1 company.Employees.Add(new Employee() { Email = "test Email 123", Name = "Test Name " + Guid.NewGuid().ToString(), Phone = " test phone", Title = "Test Manager" }); // Emp 2 company.Employees.Add(new Employee() { Email = "test Email 2 123", Name = "Test Name 2" + Guid.NewGuid().ToString(), Phone = " test phone 2", Title = "Test Manager 2" }); _bonRepo.AddTestCompanyWithEmployees(company); //_bonRepo.AddTestCompanyWithEmployeesWithTransaction(company); return(RedirectToAction(nameof(Index))); }