0
Salve Foks,
I’m having trouble passing values to the controller using the verb Httppath
controller:
    [EnableQuery]
    [HttpPatch]        
    public async Task<Document> Patch(
        [FromODataUri] int key1,
        [FromODataUri] int key2,
        [FromBody] Delta<Document> deltaSales)
    {
      /// logic ...
    }
Request: http://localhost:1146/odata/Document(key1=516820392,Key2=1)
when receiving in controller I am getting zero values.
With httpPost it works ?
– Joy Peter
DeltaSales is also passing zero ?
– Joy Peter
yes, with httppost it works, and the delta is also coming zeroed
– Luciano Azevedo
Make sure the data is sent by Httppatch.
– Joy Peter