public Login Registor(Login Login, string password) { byte[] passwordhash, passwordsalt; createpasswordhash(password, out passwordhash, out passwordsalt); var logindata = context.login.FirstOrDefault(m => m.Email == Login.Email); logindata.PasswordSalt = passwordhash; logindata.PasswordSalt = passwordsalt; context.login.Attach(logindata); context.Entry(logindata).Property(x => x.PasswordHash).IsModified = true; context.Entry(logindata).Property(x => x.PasswordSalt).IsModified = true; context.SaveChanges(); return(Login); }
public void Save() { _context.SaveChanges(); }
public void Save() { _repoContext.SaveChanges(); }
public void Save() { db.SaveChanges(); }