///<summary></summary> public static void Update(Userm userm) { Crud.UsermCrud.Update(userm); }
///<summary></summary> public static long Insert(Userm userm) { return Crud.UsermCrud.Insert(userm,true); }
///<summary></summary> public static long Insert(Userm userm) { return(Crud.UsermCrud.Insert(userm, true)); }
public void SetMobileWebUserPassword(long customerNum,String UserName,String Password) { Userm um=Userms.GetOne(customerNum,1); bool UserExists=true; if(um==null) { um=new Userm(); UserExists=false; } um.CustomerNum=customerNum; um.UsermNum=1;//always 1 um.UserName=UserName; if(Password!="") {//do not update password if password string is empty um.Password=MD5Encrypt(Password); } if(UserExists) { Userms.Update(um); } else{ Userms.Insert(um); } }