コード例 #1
0
 public ActionResult Add(MESSAGE_HISTORY model)
 {
     try
     {
         // 增加数据
         if (ModelState.IsValid)
         {
             //etMgr.AddToMESSAGE_HISTORY(msg);
             if (etMgr.SaveChanges() != 0)
             {
                 return(RedirectToAction("Index"));
             }
             else
             {
                 return(RedirectToAction("Add"));
             }
         }
         return(RedirectToAction("Add"));
     }
     catch (Exception ex)
     {
         Com.Mxm.WriteTxt.WriteText(ex.Message + ex.StackTrace);
         return(View());
     }
 }
コード例 #2
0
ファイル: AddMsg.cs プロジェクト: mxm2005/oacrm
 public AddMsg(MESSAGE_HISTORY msg, List <MSG_RECEIVE_LIST> reveiveLst)
 {
     this.msg        = msg;
     this.receiveLst = receiveLst;
 }