public async Task <IActionResult> Delete(string id, [FromBody] ControlDeleteRequest entity) { if (entity == null) { return(BadRequest()); } var response = await _cardManager.DeleteCardConfiguration(entity); if (response == null || !response.IsSuccess) { return(NotFound()); } return(NoContent()); }