using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using WX.CRM.Common.Layui; using WX.CRM.IBLL.Wx; using WX.CRM.Model.DTO; using WX.CRM.Model.Entity; namespace WX.CRM.BLL.Wx { public class WX_SZZYORDERREFUND_BL : DbContextRepository, IWX_SZZYORDERREFUND { public bool RefundCancel(decimal id, DateTime time) { using (var db = new crmContext()) { var entry = db.WX_SZZYORDERREFUND.FirstOrDefault(m => m.ID == id); entry.AUDITSTATUS = 2; entry.CUSTOMER_CANCEL_TIME = time; db.SaveChanges(); return true; } } } }