public void Save(StockAdjustment stockAdjustment) { StockAdjustment item = stockAdjustmentContext.Get(stockAdjustment.Id); if (item == null) { stockAdjustment.Status = CustomStatus.PendingApproval; stockAdjustmentContext.Add(stockAdjustment); } else { item.Remarks = stockAdjustment.Remarks; } stockAdjustmentContext.Commit(); }