예제 #1
0
        public async Task <IActionResult> Create([Bind("Id,Country,TotalCases,NewCases,TotalDeaths,TotalRecovered,ActiveCases,SeriousCritical")] PeopleWithCovid peopleWithCovid)
        {
            peopleWithCovid.Id = Guid.NewGuid();
            _context.Add(peopleWithCovid);
            await _context.SaveChangesAsync();

            return(RedirectToAction(nameof(Index)));
        }