Esempio n. 1
0
        public async Task <IActionResult> Create([Bind("IdRetoUsuario,IdReto,IdUsuario,FechaCompletado,EstadoDelReto")] RetoUsuario retoUsuario)
        {
            if (ModelState.IsValid)
            {
                _context.Add(retoUsuario);
                await _context.SaveChangesAsync();

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