public ActionResult AddLayout(LayoutViewModel model) { if (!ModelState.IsValid) { return(View("EditLayout", model)); } try { _venueService.CreateLayout(_mapper.Map <LayoutDto>(model)); return(RedirectToAction("EditLayouts")); } catch (Exception) { // ignored } return(View("EditLayout", model)); }