public IActionResult Patch([FromODataUri] int key, [FromBody] Delta <Ac4yPersistentChild> request) { UpdateByIdResponse response = new Ac4yPersistentChildEFService().UpdateById(new UpdateByIdRequest() { Id = key, Ac4yPersistentChild = request.GetInstance() }); return(Ok(response)); }
static void Main(string[] args) { try { Ac4yPersistentChildEFService.InsertResponse insertResponse = new Ac4yPersistentChildEFService().Insert(new Ac4yPersistentChildEFService.InsertRequest() { Ac4yPersistentChild = new Ac4yPersistentChild() { name = "Stewie", ages = 2 } }); }catch (Exception exception) { Console.WriteLine(exception.Message); } }