Example #1
0
        public void Insert(string SupportTypeName,string SupportTypeDesc,string SupportTypePhoto,int SupportTypePid,int? CreatedBy,DateTime? CreatedOn,int? ModifiedBy,DateTime? ModifiedOn)
        {
            SysSupportType item = new SysSupportType();

            item.SupportTypeName = SupportTypeName;

            item.SupportTypeDesc = SupportTypeDesc;

            item.SupportTypePhoto = SupportTypePhoto;

            item.SupportTypePid = SupportTypePid;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;

            item.Save(UserName);
        }
Example #2
0
        public void Update(int SupportTypeId,string SupportTypeName,string SupportTypeDesc,string SupportTypePhoto,int SupportTypePid,int? CreatedBy,DateTime? CreatedOn,int? ModifiedBy,DateTime? ModifiedOn)
        {
            SysSupportType item = new SysSupportType();
            item.MarkOld();
            item.IsLoaded = true;

            item.SupportTypeId = SupportTypeId;

            item.SupportTypeName = SupportTypeName;

            item.SupportTypeDesc = SupportTypeDesc;

            item.SupportTypePhoto = SupportTypePhoto;

            item.SupportTypePid = SupportTypePid;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;

            item.Save(UserName);
        }