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