예제 #1
0
 private static config addKeyIfMissing(SteinbachEntities Context, string key)
 {
     try
     {
         var res = new config();
         res.mkey  = key;
         res.value = "0";
         Context.AddToconfig(res);
         Context.SaveChanges();
         return(res);
     }
     catch (Exception)
     {
         return(null);
     }
 }