public ActionResult Edit(ContactPageViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            _contactInfoService.EditInfo(_contactInfoService.Convert(model));
            return(View(model));
        }
Example #2
0
        public ActionResult Edit(ContactPageViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            var dm = _cIS.EditInfo(_cIS.Convert(model));

            _notifier.Add(NotifyType.Information, T(dm == null ? "Contact info saving failed" : "Opslaan gelukt."));
            return(RedirectToAction("Index"));
        }