예제 #1
0
        public async Task <IActionResult> Edit(EventBindingModel model, IFormFile eventImage)
        {
            var viewModel = eventMapper.ModifiedEvent(model, eventImage, userManager.GetUserId(User));

            this.eventService.EditEvent(viewModel);

            await base.UpdateEventsInCache();

            return(this.RedirectToAction("GetMyEvents"));
        }