コード例 #1
0
 public async Task AddTest(Tests test)
 {
     using (var Db = new InTouch_DBEntities())
     {
         Db.Tests.Add(test);
         await Db.SaveChangesAsync();
     }
 }
コード例 #2
0
 public async Task AddUser(Users user)
 {
     using (var Db = new InTouch_DBEntities())
     {
         try
         {
             Db.Users.Add(user);
             await Db.SaveChangesAsync();
         }
         catch (Exception ex) {
             throw ex;
         }
     }
 }