Beispiel #1
0
 public virtual async Task <ListResultDto <MenuDto> > GetRoleMenuListAsync(string role, PlatformType platformType)
 {
     return(await MenuAppService.GetRoleMenuListAsync(new MenuGetByRoleInput
     {
         Role = role,
         PlatformType = platformType
     }));
 }
Beispiel #2
0
 public virtual async Task <ListResultDto <MenuDto> > GetRoleMenuListAsync(string role, string framework)
 {
     return(await MenuAppService.GetRoleMenuListAsync(new MenuGetByRoleInput
     {
         Role = role,
         Framework = framework
     }));
 }
Beispiel #3
0
        public virtual async Task <ListResultDto <MenuDto> > GetUserMenuListAsync(Guid userId, PlatformType platformType)
        {
            var userRoles = await UserRoleFinder.GetRolesAsync(userId);

            var getMenuByUser = new MenuGetByUserInput
            {
                UserId       = userId,
                Roles        = userRoles,
                PlatformType = platformType
            };

            return(await MenuAppService.GetUserMenuListAsync(getMenuByUser));
        }
Beispiel #4
0
        public virtual async Task <ListResultDto <MenuDto> > GetUserMenuListAsync(Guid userId, string framework)
        {
            var userRoles = await UserRoleFinder.GetRolesAsync(userId);

            var getMenuByUser = new MenuGetByUserInput
            {
                UserId    = userId,
                Roles     = userRoles,
                Framework = framework
            };

            return(await MenuAppService.GetUserMenuListAsync(getMenuByUser));
        }
Beispiel #5
0
 public virtual async Task <ListResultDto <MenuDto> > GetUserMenuListAsync(MenuGetByUserInput input)
 {
     return(await MenuAppService.GetUserMenuListAsync(input));
 }
Beispiel #6
0
 public virtual async Task SetUserMenusAsync(UserMenuInput input)
 {
     await MenuAppService.SetUserMenusAsync(input);
 }
Beispiel #7
0
 public virtual async Task DeleteAsync(Guid id)
 {
     await MenuAppService.DeleteAsync(id);
 }
Beispiel #8
0
 public virtual async Task <MenuDto> UpdateAsync(Guid id, MenuUpdateDto input)
 {
     return(await MenuAppService.UpdateAsync(id, input));
 }
Beispiel #9
0
 public virtual async Task <MenuDto> CreateAsync(MenuCreateDto input)
 {
     return(await MenuAppService.CreateAsync(input));
 }
Beispiel #10
0
 public virtual async Task <PagedResultDto <MenuDto> > GetListAsync(MenuGetListInput input)
 {
     return(await MenuAppService.GetListAsync(input));
 }
Beispiel #11
0
 public virtual async Task <MenuDto> GetAsync(Guid id)
 {
     return(await MenuAppService.GetAsync(id));
 }