Exemple #1
0
        public ActionResult EditLayout(int?id)
        {
            ViewBag.Venues = _venueService.GetVenues();
            if (id == null)
            {
                return(View(new LayoutViewModel()));
            }

            var layoutDto = _venueService.GetLayout(id.Value);

            return(View(_mapper.Map <LayoutViewModel>(layoutDto)));
        }