Example #1
0
        public void Insert(string MessageTypeCode,string MessageTypeName,int? CreatedBy,DateTime? CreatedOn,int? ModifiedBy,DateTime? ModifiedOn)
        {
            SysMessageType item = new SysMessageType();

            item.MessageTypeCode = MessageTypeCode;

            item.MessageTypeName = MessageTypeName;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;

            item.Save(UserName);
        }
Example #2
0
        public void Update(int Id,string MessageTypeCode,string MessageTypeName,int? CreatedBy,DateTime? CreatedOn,int? ModifiedBy,DateTime? ModifiedOn)
        {
            SysMessageType item = new SysMessageType();
            item.MarkOld();
            item.IsLoaded = true;

            item.Id = Id;

            item.MessageTypeCode = MessageTypeCode;

            item.MessageTypeName = MessageTypeName;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;

            item.Save(UserName);
        }