public void Insert(string Name, string CreatedBy, DateTime CreatedOn, string ModifiedBy, DateTime ModifiedOn) { TransactionTypeDescriptor item = new TransactionTypeDescriptor(); item.Name = Name; item.CreatedBy = CreatedBy; item.CreatedOn = CreatedOn; item.ModifiedBy = ModifiedBy; item.ModifiedOn = ModifiedOn; item.Save(UserName); }
public void Update(int TransactionTypeDescriptorId, string Name, string CreatedBy, DateTime CreatedOn, string ModifiedBy, DateTime ModifiedOn) { TransactionTypeDescriptor item = new TransactionTypeDescriptor(); item.TransactionTypeDescriptorId = TransactionTypeDescriptorId; item.Name = Name; item.CreatedBy = CreatedBy; item.CreatedOn = CreatedOn; item.ModifiedBy = ModifiedBy; item.ModifiedOn = ModifiedOn; item.MarkOld(); item.Save(UserName); }