mirror of
https://github.com/hmaxnl/DotBased.git
synced 2025-04-26 15:17:54 +02:00
19 lines
500 B
C#
Executable File
19 lines
500 B
C#
Executable File
using DotBased.AspNet.Authority.Models.Authority;
|
|
using DotBased.Monads;
|
|
|
|
namespace DotBased.AspNet.Authority.Managers;
|
|
|
|
public partial class AuthorityManager
|
|
{
|
|
public async Task<Result<List<AuthorityGroup>>> GetUserGroupsAsync(AuthorityUser user, CancellationToken cancellationToken = default)
|
|
{
|
|
try
|
|
{
|
|
return await GroupRepository.GetUserGroupsAsync(user, cancellationToken);
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return e;
|
|
}
|
|
}
|
|
} |