public void Add(YG.SC.DataAccess.ShopRoom model) { using (var db = new YG.SC.DataAccess.Entities()) { db.ShopRoom.Add(model); db.SaveChanges(); } }
public bool Exist(string shopId) { using (var db = new YG.SC.DataAccess.Entities()) { var shopExist = db.ShopRoom.Any(m => m.ShopId == shopId); return(shopExist); } }
public void Add(YG.SC.DataAccess.JobMinute model) { using (var db = new YG.SC.DataAccess.Entities()) { db.JobMinute.Add(model); db.SaveChanges(); } }