示例#1
0
 /// <summary>
 /// 修改日记
 /// </summary>
 /// <param name="openid"></param>
 public void UpdateDiary(string id, string content)
 {
     try
     {
         DiaryBLL   bll   = new DiaryBLL();
         DiaryModel model = new DiaryModel();
         model.ID           = Guid.Parse(id);
         model.DiaryContent = content;
         bll.UpdateDiary(model);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#2
0
 /// <summary>
 /// 修改日记
 /// </summary>
 /// <param name="openid"></param>
 public void UpdateDiary(string id, string content)
 {
     try
     {
         DiaryBLL   bll   = new DiaryBLL();
         DiaryModel model = new DiaryModel();
         model.ID           = Guid.Parse(id);
         model.DiaryContent = content;
         model.Modifytime   = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
         bll.UpdateDiary(model);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }