public void Cancel(string Id) { var stockAdjustment = stockAdjustmentContext.Get(Id); stockAdjustment.Status = CustomStatus.Cancelled; stockAdjustmentContext.Commit(); }