/// <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; } }
/// <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; } }