Beispiel #1
0
 public static pts.models.Key Get(Guid guid)
 {
     using (var db = new pts.models.storeContainer())
     {
         return db.Keys.FirstOrDefault(p => p.Id == guid);
     }
 }
Beispiel #2
0
 public static void Insert(pts.models.Key key)
 {
     using (var db = new pts.models.storeContainer())
     {
         db.Keys.Add(key);
         db.SaveChanges();
     }
 }