22 lines
442 B
C#
22 lines
442 B
C#
using Oqtane.Models;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Oqtane.Services
|
|
{
|
|
public interface IUserService
|
|
{
|
|
Task<List<User>> GetUsersAsync();
|
|
|
|
Task<User> GetUserAsync(int UserId);
|
|
|
|
Task AddUserAsync(User user);
|
|
|
|
Task UpdateUserAsync(User user);
|
|
|
|
Task DeleteUserAsync(int UserId);
|
|
|
|
bool IsAuthorized(User user, string accesscontrollist);
|
|
}
|
|
}
|