public async Task <IActionResult> GetSitemapById(string id) { if (string.IsNullOrEmpty(id)) { return(BadRequest("id is null")); } var sitemap = await _sitemapService.GetByIdAsync(id); if (sitemap == null) { return(NotFound()); } return(Ok(sitemap)); }