Ejemplo n.º 1
0
        public async Task <IActionResult> Create([Bind("ID,Name,PassWd,Email,PhoneNum")] Participant participant)
        {
            if (ModelState.IsValid)
            {
                await participantService.Add(participant);

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