public override IHttpActionResult Put(Subscription model) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } using (var scope = new TransactionScope()) { _service.EditAsTenant(model); UpdateDependance(model); scope.Complete(); } return(Ok(model.Id)); }