public ActionResult Edit(int?id) { ViewBag.Layouts = _venueService.GetLayouts().ToList(); if (id == null) { return(View(new EditEventViewModel())); } var eventDto = _eventService.GetEvent(id.Value); return(View(_mapper.Map <EditEventViewModel>(eventDto))); }
public ActionResult EditLayouts() { return(View(_venueService.GetLayouts())); }