public void updatePassword(Passworde tmp, Passworde tmp2) { BE.Passworde tmp3 = null; foreach (var item in DS.DataSource.pass) { if (item.User == tmp.User && item.Password == tmp.Password) { tmp3 = item; item.User = tmp2.User; item.Password = tmp2.Password; } } if (tmp3 == null) { throw new SomeException("שם משתמש וסיסמה אינם נכונים"); } }
public static BE.Passworde Clone(this BE.Passworde original) { BE.Passworde target = new BE.Passworde(original.User, original.Password); return(target); }
public void updatePassword(BE.Passworde tmp, BE.Passworde tmp2) { IDAL.updatePassword(tmp, tmp2); }