public static TemplateSortedProductDto StaticDBToDto(TemplateListOrdering entity, string name)
 {
     if (entity == null)
     {
         return(null);
     }
     return(new TemplateSortedProductDto
     {
         Id = entity.Id,
         ShopId = (int)entity.Shop_Id,
         TemplateName = name
     });
 }
 public static TemplateSortedProductDto StaticDBToDto(TemplateListOrdering ordering, TemplateSortedProduct template)
 {
     if (ordering == null || template == null)
     {
         return(null);
     }
     return(new TemplateSortedProductDto
     {
         Id = ordering.Id,
         ShopId = ordering.Id,
         CategoryId = template.CategoryId,
         Rank = template.Rank
     });
 }
 protected TemplateSortedProductDto ConvertDBToDto(TemplateListOrdering ordering, TemplateSortedProduct template)
 {
     return(StaticDBToDto(ordering, template));
 }
 protected TemplateSortedProductDto ConvertDBToDto(TemplateListOrdering entity, string name)
 {
     return(StaticDBToDto(entity, name));
 }