public async Task <IActionResult> DeleteUser(Guid id) { var existingItem = await _userQuery.GetAsync(id); if (existingItem == null) { _logger.LogError($"User with id: {id}, hasn't been found in db."); return(NotFound()); } await _userCommand.RemoveAsync(id); return(Ok()); // 204 }