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:
12
src/BlazorShared/Interfaces/ICatalogLookupDataService.cs
Normal file
12
src/BlazorShared/Interfaces/ICatalogLookupDataService.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using BlazorShared.Models;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BlazorShared.Interfaces
|
||||
{
|
||||
public interface ICatalogLookupDataService<TLookupData> where TLookupData : LookupData
|
||||
{
|
||||
Task<List<TLookupData>> List();
|
||||
Task<TLookupData> GetById(int id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user