public override int Save() { ENUser us = new ENUser(); us.Account = this.Account; us.Password = this.Password; us.Save(); this.idUser = us.Id; if (id == 0) { return(this.id = cad.Insert(ToDataRow)); } else { cad.Update(ToDataRow); return(0); } }
public override int Save() { ENUser us = new ENUser(); us.Account = this.Account; us.Password = this.Password; us.Save(); this.idUser = us.Id; if (id == 0) { return this.id = cad.Insert(ToDataRow); } else { cad.Update(ToDataRow); return 0; } }