Пример #1
0
        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));
        }
Пример #2
0
 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);
     }
 }