Exemple #1
0
        public void SendCallMeRequest(CallMeViewModel model)
        {
            var template = GetTemplate("CallMeRequest.aspx");
            var text = template.Apply(model);

            SendNotification(string.Empty, AdminEmail, "Запрос перезвонить", text);
        }
        public ActionResult CallMe(CallMeViewModel model)
        {
            if (ModelState.IsValid)
            {
                CreateMailer().SendCallMeRequest(model);

                return PartialView("Widgets/CallMe", new CallMeViewModel { Success = true });
            }

            return PartialView("Widgets/CallMe", model);
        }