Exemplo n.º 1
0
        public async Task <IActionResult> Create([Bind("Id,ProfilNev,SzuletesiIdo,RegisztracioIdeje,Nem,VezetekNev,KeresztNev,EmailCim")] Profil profil)
        {
            if (ModelState.IsValid)
            {
                _context.Add(profil);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(profil));
        }
        public async Task <IActionResult> Create([Bind("Id,KezdesIdeje,Nev,Szabalyzat,JatekMod,Statusz")] Verseny verseny)
        {
            if (ModelState.IsValid)
            {
                _context.Add(verseny);
                await _context.SaveChangesAsync();

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