Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 public async Task <int> CompleteAsync()
 {
     return(await _context.SaveChangesAsync());
 }