Esempio n. 1
0
        public async Task <IActionResult> EventEdit(int eventId)
        {
            try
            {
                var dto = await _eventUserManager.InitializeEventEditDTOAsync(eventId);

                var model = _mapper.Map <EventCreateDTO, EventCreateViewModel>(dto);

                return(View(model));
            }
            catch (Exception e)
            {
                return(RedirectToAction("HandleError", "Error", new { code = 500 }));
            }
        }
Esempio n. 2
0
        public async Task <IActionResult> EventEdit(int eventId)
        {
            var eventCreateModel = await _eventUserManager.InitializeEventEditDTOAsync(eventId);

            return(Ok(eventCreateModel));
        }