public void Update(int DespatchId, string DespatchRef, decimal?TotalCartons, decimal?TotalWeight, decimal?TotalCbm, string CreatedBy, DateTime?CreatedDate, byte[] DespatchNoteTs) { DespatchNote item = new DespatchNote(); item.MarkOld(); item.IsLoaded = true; item.DespatchId = DespatchId; item.DespatchRef = DespatchRef; item.TotalCartons = TotalCartons; item.TotalWeight = TotalWeight; item.TotalCbm = TotalCbm; item.CreatedBy = CreatedBy; item.CreatedDate = CreatedDate; item.DespatchNoteTs = DespatchNoteTs; item.Save(UserName); }
public void Insert(string DespatchRef, decimal?TotalCartons, decimal?TotalWeight, decimal?TotalCbm, string CreatedBy, DateTime?CreatedDate, byte[] DespatchNoteTs) { DespatchNote item = new DespatchNote(); item.DespatchRef = DespatchRef; item.TotalCartons = TotalCartons; item.TotalWeight = TotalWeight; item.TotalCbm = TotalCbm; item.CreatedBy = CreatedBy; item.CreatedDate = CreatedDate; item.DespatchNoteTs = DespatchNoteTs; item.Save(UserName); }