public bool modifyPassword(Person p, string newpass) { try { p.password = newpass; DB.modifyStaff(p); return(true); } catch { return(false); } }