Beispiel #1
0
        public async Task <IActionResult> OnPostAsync()
        {
            if (!ModelState.IsValid)
            {
                return(Page());
            }
            await _genreMovieService.Create(genreMovieCreation);

            return(RedirectToPage("/Index"));
        }
 public async Task Create(GenreMovieInputDto inputDto)
 {
     await GenreMovieService.Create(inputDto);
 }