public virtual ActionResult Edit(string id, ConciergeEditModel model)
        {
            var x = ConciergeRepository.Get(id);
            ViewData["concierge"] = x;
            ViewData["user"] = Users[x.User];
			if (!ModelState.IsValid)
			{
				return View(model);
			}
            try
            {
                x.Notes = model.Notes;
                x.Stage = model.Stage;
				ConciergeRepository.Save(x);
                return RedirectToAction("Index");
            }
            catch (Exception ex)
            {
                Notifier.Notify(ex);
                return View(model);
            }
        }
Ejemplo n.º 2
0
        public virtual ActionResult Edit(string id, ConciergeEditModel model)
        {
            var x = ConciergeRepository.Get(id);

            ViewData["concierge"] = x;
            ViewData["user"]      = Users[x.User];
            if (!ModelState.IsValid)
            {
                return(View(model));
            }
            try
            {
                x.Notes = model.Notes;
                x.Stage = model.Stage;
                ConciergeRepository.Save(x);
                return(RedirectToAction("Index"));
            }
            catch (Exception ex)
            {
                Notifier.Notify(ex);
                return(View(model));
            }
        }