public IActionResult Put([FromBody] Phase Model) { if (Model != null) { using (var scope = new TransactionScope()) { _phaseRepository.UpdatePhase(Model); scope.Complete(); return(new OkResult()); } } return(new NoContentResult()); }
public IActionResult Put([FromBody] Phase Model) { if (Model != null) { using (var scope = new TransactionScope()) { _phaseRepository.UpdatePhase(Model); scope.Complete(); return(new OkResult()); } } return(new NoContentResult()); }