public IActionResult Delete(int phaseId) { var phase = _phaseService.Get(phaseId); if (!_accessService.AllowDeletePhase(User, phase.EngagementId)) { return(StatusCode(403)); } _phaseService.Remove(phaseId); return(Ok()); }