public async Task <IActionResult> RemoveClientProfile(Guid id) { try { var removed = await _clientProfileService.RemoveClientProfile(id); if (!removed) { return(NotFound()); } return(NoContent()); } catch (Exception e) { return(StatusCode(500, new JsonResult(new { message = $"Something went wrong inside the remove clientProfile action: {e.Message}" }))); } }