コード例 #1
0
 public bool UpdateGPAUser(GPAUser user)
 {
     try
     {
         dbContext.Update <GPAUser>(user);
         dbContext.SaveChanges();
         return(true);
     }
     catch (Exception ex)
     {
         return(false);
     }
 }
コード例 #2
0
 public bool CreateGPAUser(GPAUser user)
 {
     try
     {
         dbContext.GPAUsers.Add(user);
         dbContext.SaveChanges();
         return(true);
     }
     catch (Exception ex)
     {
         return(false);
     }
 }