public async Task <IActionResult> Delete(Guid id) { if (id == Guid.Empty) { return(BadRequest(CreateProblemDetailsResponse("Invalid Id"))); } _featureService.DeleteById(id); Feature feature = await _featureService.GetByIdAsync(id); return(feature == null ? StatusCode(StatusCodes.Status500InternalServerError) : Ok()); }