public IActionResult Post([FromBody] Opportunite opportunite) { using (var scope = new TransactionScope()) { _opportuniteRepository.InsertOpportunite(opportunite); scope.Complete(); return(CreatedAtAction(nameof(Get), new { id = opportunite.Id }, opportunite)); } }