Example #1
0
        public async Task <IActionResult> Create(ExameViewModel exameViewModel)
        {
            if (ModelState.IsValid)
            {
                await _exameService.AddExameAsync(exameViewModel);

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