using System; using System.Collections.Generic; using System.Linq; using System.Web; using Warehouse.Models.mesModel; using Warehouse.Models.whMS; using Z.EntityFramework.Plus; namespace Warehouse.DAL.SysConfig { public class QCConfigMSDal { public int SetQCConfig(string setValue) { using (var context = new whMSModel()) { return context.tqcisenables.Update(x => new tqcisenable() { isenable = setValue }); } } public tqcisenable QueryQCConfig() { using (var context = new whMSModel()) { return context.tqcisenables.FirstOrDefault(); } } } }