/// <summary> /// 审核日志 /// </summary> /// <param name="couponOrderId"></param> /// <param name="status"></param> /// <param name="userId"></param> private void LogReviewStatus(string couponOrderId, int status, string userId) { var reviewStatus = new ReviewStatusLog() { Id = DataHelper.GetSystemID(), TableName = "GiftCards", TableNameId = couponOrderId, CreatedBy = userId, CreatedOn = DateTime.Now, Status = status }; context.ReviewStatusLog.Add(reviewStatus); context.SaveChanges(); }
/// <summary> /// 审批记录日志? /// </summary> /// <param name="id"></param> /// <param name="status"></param> /// <returns></returns> private ReviewStatusLog AddReviewStatus(string id, int status, string userId) { var reviewStatus = new ReviewStatusLog() { Id = DataHelper.GetSystemID(), TableName = "Products", TableNameId = id, CreatedBy = userId, CreatedOn = DateTime.Now, Status = status }; context.ReviewStatusLog.Add(reviewStatus); return(reviewStatus); }