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);
        }
 public bool Destroy(object Id)
 {
     return(SysDelegateUser.Destroy(Id) == 1);
 }
 public bool Delete(object Id)
 {
     return(SysDelegateUser.Delete(Id) == 1);
 }