public void Insert(DateTime? CompanyDate,string CompanyName,string CompanyAddress,string CompanyDesc,string CompanyTel,int? CompanyMemberID,int? CreatedBy,DateTime? CreatedOn,int? ModifiedBy,DateTime? ModifiedOn,int? CompanyStatus)
        {
            SysMemberCompanyR item = new SysMemberCompanyR();

            item.CompanyDate = CompanyDate;

            item.CompanyName = CompanyName;

            item.CompanyAddress = CompanyAddress;

            item.CompanyDesc = CompanyDesc;

            item.CompanyTel = CompanyTel;

            item.CompanyMemberID = CompanyMemberID;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;

            item.CompanyStatus = CompanyStatus;

            item.Save(UserName);
        }
        public void Update(int Id,DateTime? CompanyDate,string CompanyName,string CompanyAddress,string CompanyDesc,string CompanyTel,int? CompanyMemberID,int? CreatedBy,DateTime? CreatedOn,int? ModifiedBy,DateTime? ModifiedOn,int? CompanyStatus)
        {
            SysMemberCompanyR item = new SysMemberCompanyR();
            item.MarkOld();
            item.IsLoaded = true;

            item.Id = Id;

            item.CompanyDate = CompanyDate;

            item.CompanyName = CompanyName;

            item.CompanyAddress = CompanyAddress;

            item.CompanyDesc = CompanyDesc;

            item.CompanyTel = CompanyTel;

            item.CompanyMemberID = CompanyMemberID;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;

            item.CompanyStatus = CompanyStatus;

            item.Save(UserName);
        }