public void Insert(string Ip, int Accountfid, string Access) { PhpssIpaccessAccount item = new PhpssIpaccessAccount(); item.Ip = Ip; item.Accountfid = Accountfid; item.Access = Access; item.Save(UserName); }
public void Update(string Ip, int Accountfid, string Access, int Id) { PhpssIpaccessAccount item = new PhpssIpaccessAccount(); item.MarkOld(); item.IsLoaded = true; item.Ip = Ip; item.Accountfid = Accountfid; item.Access = Access; item.Id = Id; item.Save(UserName); }