public CategoryDTO FindCategoryDTOByName(string categoryName) { Category category = moderation.FindCategoryByName(categoryName); return(converterToDTO.ConvertToCategoryDTO(category)); }
public IEnumerable <CategoryDTO> GetAllCategories() { return(catalog.GetAllCategories() .Select(c => converterToDTO.ConvertToCategoryDTO(c))); }