IDataApiInc Method |
Namespace: Casewhere.Runtime.DSL.Api
void Inc( string id, string attributeName, Object value )
var dataApi = ctx.Use<IDataApi>(); var customerId = ctx.Input["Id"]; var attributeName = "AvailableBalance"; var incrementAmount = 10000; dataApi.Inc(customerId, attributeName, incrementAmount);