//News Reply public ActionResult SaveReplyData(CustomerNewsManager curd) { string NewsId = Request["NewsId"]; //关联新闻表的ID string Comment = Request["Comment"]; //评论 string message = ""; bool success = true; try { curd.SaveReply(NewsId, Comment); } catch (Exception ex) { success = false; message = ex.Message; } var jsonData = new { success = success, message = message }; return Json(jsonData); }
//Save Customer People Data public ActionResult SaveData(CustomerNewsManager curd) { //CustomerProfileManager curd string message = ""; bool success = true; try { curd.Save(); if (curd.CustomerId == 0) { int newsId = (int)curd.ID; SendNewsletterMail(newsId); } } catch (Exception ex) { success = false; message = ex.Message; } var jsonData = new { success = success, message = message, data = curd }; return Json(jsonData); }