示例#1
0
        public async Task <IActionResult> AddEvent(AdminEventBindingModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View());
            }
            await _eventsService.AddEventAsync(model);

            return(RedirectToAction("EventsAdmin"));
        }