/// <summary> /// Adds the specified comment. /// </summary> /// <param name="comment">The comment.</param> /// <returns></returns> public tbl_TaskPersonalComment Add(tbl_TaskPersonalComment comment) { comment.ID = Guid.NewGuid(); _dataContext.tbl_TaskPersonalComment.AddObject(comment); _dataContext.SaveChanges(); return(comment); }
/// <summary> /// Updates the specified comment. /// </summary> /// <param name="comment">The comment.</param> public void Update(tbl_TaskPersonalComment comment) { _dataContext.SaveChanges(); }