public async Task <IActionResult> Fill(int id)
        {
            if (SchedulePlanExists(id))
            {
                ICollection <Event> events = new List <Event>();
                foreach (var eventTemplate in _context.EventTemplates.OrderBy(x => x.SequentialNumber))
                {
                    events.Add(new Event {
                        EventDescription = eventTemplate.Description, SchedulePlanId = id
                    });
                }

                await _context.AddRangeAsync(events);

                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Edit), new { id }));
            }
            return(NotFound());
        }