public async Task <IActionResult> Create([Bind("Id,SomeNumber")] Repo1Item repo1Item)
        {
            if (ModelState.IsValid)
            {
                _context.Add(repo1Item);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(repo1Item));
        }
Exemple #2
0
 public async Task <int> CompleteAsync()
 {
     return(await _context.SaveChangesAsync());
 }