public void Insert(string BranchID,string MainUser,string DelegateUser) { SysDelegateUser item = new SysDelegateUser(); item.BranchID = BranchID; item.MainUser = MainUser; item.DelegateUser = DelegateUser; item.Save(UserName); }
public void Update(int Id,string BranchID,string MainUser,string DelegateUser) { SysDelegateUser item = new SysDelegateUser(); item.MarkOld(); item.IsLoaded = true; item.Id = Id; item.BranchID = BranchID; item.MainUser = MainUser; item.DelegateUser = DelegateUser; item.Save(UserName); }