Replace api with controller instead of minimalapi
This commit is contained in:
@@ -4,9 +4,9 @@ using System.Text;
|
||||
|
||||
namespace Emergence.services.Interface
|
||||
{
|
||||
public interface IService<T> where T : class
|
||||
public interface IService<T, I> where T : class
|
||||
{
|
||||
public Task<IList<T>> GetAllAsync();
|
||||
public Task<T> GetByIdAsync(int id);
|
||||
public Task<T> GetByIdAsync(I id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
using Emergence.models;
|
||||
|
||||
namespace Emergence.services.Interface
|
||||
{
|
||||
public interface ITenantService : IService<TenantModel, Guid>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
using Emergence.models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Emergence.services.Interface
|
||||
{
|
||||
public interface IUserService : IService<UserModel>
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user