make : // TODO: Make a generic service for any LookupData type (#594)
* make : // TODO: Make a generic service for any LookupData type => CatalogLookupDataService * Update src/BlazorAdmin/Services/CachedCatalogTypeServiceDecorator.cs Co-authored-by: Steve Smith <steve@kentsmiths.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using BlazorAdmin.Services;
|
||||
using BlazorShared.Interfaces;
|
||||
using BlazorShared.Models;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace BlazorAdmin
|
||||
@@ -8,10 +9,10 @@ namespace BlazorAdmin
|
||||
{
|
||||
public static IServiceCollection AddBlazorServices(this IServiceCollection services)
|
||||
{
|
||||
services.AddScoped<ICatalogBrandService, CachedCatalogBrandServiceDecorator>();
|
||||
services.AddScoped<CatalogBrandService>();
|
||||
services.AddScoped<ICatalogTypeService, CachedCatalogTypeServiceDecorator>();
|
||||
services.AddScoped<CatalogTypeService>();
|
||||
services.AddScoped<ICatalogLookupDataService<CatalogBrand>, CachedCatalogBrandServiceDecorator>();
|
||||
services.AddScoped<CatalogLookupDataService<CatalogBrand, CatalogBrandResponse>>();
|
||||
services.AddScoped<ICatalogLookupDataService<CatalogType>, CachedCatalogTypeServiceDecorator>();
|
||||
services.AddScoped<CatalogLookupDataService<CatalogType, CatalogTypeResponse>>();
|
||||
services.AddScoped<ICatalogItemService, CachedCatalogItemServiceDecorator>();
|
||||
services.AddScoped<CatalogItemService>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user