Exemplo n.º 1
0
 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("שם משתמש וסיסמה אינם נכונים");
     }
 }
Exemplo n.º 2
0
 public static BE.Passworde Clone(this BE.Passworde original)
 {
     BE.Passworde target = new BE.Passworde(original.User, original.Password);
     return(target);
 }
Exemplo n.º 3
0
 public void updatePassword(BE.Passworde tmp, BE.Passworde tmp2)
 {
     IDAL.updatePassword(tmp, tmp2);
 }