public void SendOrder() { ////查是否有舊有的 Member existMember = m_FTISService.GetMemberByLoginId(this.LoginId); if (existMember != null) { this.SendOrderOk = false; this.ErrorMsg = "此帳號已經有人使用!"; return; } this.Status = "0"; Insert(); Member member = m_FTISService.GetMemberById(this.EntityId); m_SessionHelper.WebMember = member; this.SendOrderOk = true; ////電子報 if ("1".Equals(this.ReceiveEpaperInfo)) { EpaperEmailModel epaperEmailModel = new EpaperEmailModel() { Company = this.Company, Dept = this.Dept, Email = this.Email, Name = this.Name, Tel = this.Tel, UserStatus = "1" }; epaperEmailModel.SendOrder(); } }
public ActionResult SendOrder(EpaperEmailModel model) { string captcha = AccountUtil.GetCaptcha(); if (!captcha.Equals(model.ConfirmationCode, StringComparison.OrdinalIgnoreCase)) { ModelState.AddModelError("ConfirmationCode", "驗證碼錯誤"); } else { if (model.IsValid()) { model.SendOrder(); } } if (model.SendOrderOk) { ModelState.Clear(); } return View("Order", model); }
public ActionResult Edit(EpaperEmailModel model, string cdts) { GetConditions(cdts); model.Update(); return RedirectToAction("AdminIndex", new { Page = model.Page, Cdts = cdts }); }
public ActionResult Create(EpaperEmailModel model, string cdts) { GetConditions(cdts); model.Insert(); return View("AdminIndex"); }