asp.net mvc - .NET transaction for Entitity Framework and WebAPI calls -


i have following sequential calls ef (entity framework) , web api mvc controller.

  1. create customer using ef dbcontext.
  2. create order customer using ef dbcontext.
  3. charge customer calling web api calls paypal api.
  4. update order of successful payment using ef dbcontext.
  5. call shipping web api notify ship order. web api calls ef dbcontext create database entries.

as may notice, calls not using same ef dbcontext. have used transaction described here if same database related have 2 webapi calls need part of transaction too.

is possible achieve same transaction scope?


Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -