private void SetTourMetaDefaults(TourMetaEdit metaEdit) { if (string.IsNullOrWhiteSpace(metaEdit.PriceIncludesHeader)) { metaEdit.PriceIncludesHeader = "price includes:"; } if (string.IsNullOrWhiteSpace(metaEdit.AdditionalInformationHeader)) { metaEdit.AdditionalInformationHeader = "hotel accommodations at properties such as:"; } }
public ActionResult Meta(TourMetaEdit tourMetaEdit) { if (!ModelState.IsValid) { return(View(tourMetaEdit)); } var tourMetaUpdate = Mapper.Map <TourMetaUpdate>(tourMetaEdit); _tourCommandService.UpdateMeta(tourMetaUpdate); TempData["Info"] = "Tour details updated"; return(RedirectToRoute("admin-tour-meta", new { tourMetaEdit.TourId })); }