Esempio n. 1
0
        public async Task <IActionResult> Create(eventCreateDto dto)
        {
            if (ModelState.IsValid)
            {
                await eventsService.AddNew(dto, User.Identity.Name);

                return(RedirectToAction(nameof(All)));
            }
            return(View(dto));
        }