public bool UpdateGPAUser(GPAUser user) { try { dbContext.Update <GPAUser>(user); dbContext.SaveChanges(); return(true); } catch (Exception ex) { return(false); } }
public bool CreateGPAUser(GPAUser user) { try { dbContext.GPAUsers.Add(user); dbContext.SaveChanges(); return(true); } catch (Exception ex) { return(false); } }