Пример #1
0
        public IActionResult Edit(EventBindingModel model, IFormFile eventImage)
        {
            var viewModel = eventMapper.MapEditEventToDB(model, eventImage, _userManager.GetUserId(User));

            this._eventService.EditEvent(viewModel);

            var task = new EventsTask(factory);

            task.ProcessInScope(provider);

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