title: How to get url?
body: <p>I need to return Url like <code>/cat/prigotuvannya-yizhi/dukhovi-shafi/</code> where <code>prigotuvannya-yizhi</code> is category and <code>dukhovi-shafi</code> - subcategory. But can't understand, how to do it</p>
  
  <pre><code>public class CmsCoreDbContext : CmsDbContextBase
  {
      public DbSet&lt;CmsLiteralGroup&gt; CmsLiteralGroups { get; set; }
  }
  
  public void Configure(IApplicationBuilder application, IHostingEnvironment env)
  {
      application            
          .UseMvc(routeBuilder =&gt;
          {
              routeBuilder.LocalizeRoutes(r =&gt;
              {
                  r.MapRoute("category", "cat/{category}/{subCategory}", new { Controller = "Category", Action = "Index"});
              });
          });
  }
  
      public async Task&lt;ProductComparsionVM&gt; GetProductComparisonByListId(int listId)
      {
          var comparsionList = _dbContext.ProductsComparsion.Include(z =&gt; z.ProductsToCompare).FirstOrDefault(z =&gt; z.Id == listId);
          var category = _dbContext.Categories.FirstOrDefault(z =&gt; z.Id == comparsionList.CategoryId);
          var literals = _dbContextCore.CmsLiteralGroups.AsNoTracking();
  
          return new ProductComparsionVM
          {
              // I need to get url here somehow
              ProductGroupUrl = "/cat/" + //"prigotuvannya-yizhi/" + "dukhovi-shafi/",
                                  literals.Where(z =&gt; z.Code.ToLower() == id)
          };
      }
  </code></pre>
  
  <p><strong>Literals</strong></p>
  
  <p><code>CmsLiteralGroups</code> contain all codes, which I use in url. And I need to get it somehow</p>
  
  <p><a href="https://i.stack.imgur.com/vp5bD.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vp5bD.jpg" alt="enter image description here"></a></p>