Exemplo n.º 1
0
        public async Task <IActionResult> MimicCustomerImport(int numberOfRecords)
        {
            for (int i = 0; i < numberOfRecords; i++)
            {
                _context.Customers.Add(new Customer {
                    CompanyName = DateTime.Now.ToString() + " " + i
                });
            }
            await _context.SaveChangesAsync();

            return(Redirect("/api/customer"));
        }