Exemplo n.º 1
0
 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:";
     }
 }
Exemplo n.º 2
0
        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 }));
        }