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); }
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); }