public virtual ActionResult Concierge(ConciergeViewModel model) { if (!ModelState.IsValid) { return(View(model)); } var ticket = new Concierge { User = CurrentUser.Document.Id, Link = model.Link, Description = model.Description, Stage = ConciergeStage.Submitted, }; ConciergeRepository.Save(ticket); Notifier.Notify( Severity.Success, "Thanks for your concierge request!", "We'll be reviewing your concierge request shortly and getting in touch with you. Typically we reply within 48 hours, although we may contact you sooner if we need some clarification on your request. Thanks!", ticket); return(RedirectToAction("Index")); }
public virtual ActionResult Concierge(ConciergeViewModel model) { if (!ModelState.IsValid) { return View(model); } var ticket = new Concierge { User = CurrentUser.Document.Id, Link = model.Link, Description = model.Description, Stage = ConciergeStage.Submitted, }; ConciergeRepository.Save(ticket); Notifier.Notify( Severity.Success, "Thanks for your concierge request!", "We'll be reviewing your concierge request shortly and getting in touch with you. Typically we reply within 48 hours, although we may contact you sooner if we need some clarification on your request. Thanks!", ticket); return RedirectToAction("Index"); }