Ejemplo n.º 1
0
        public async Task <IActionResult> OnPostAsync()
        {
            if (!ModelState.IsValid)
            {
                return(Page());
            }

            await repo.CreateEventAsync(Event);

            return(RedirectToPage("EventIndex", new { teamId = Event?.TeamId }));
        }