Пример #1
0
 public virtual async Task <ListResultDto <MenuDto> > GetRoleMenuListAsync(string role, PlatformType platformType)
 {
     return(await MenuAppService.GetRoleMenuListAsync(new MenuGetByRoleInput
     {
         Role = role,
         PlatformType = platformType
     }));
 }
Пример #2
0
 public virtual async Task <ListResultDto <MenuDto> > GetRoleMenuListAsync(string role, string framework)
 {
     return(await MenuAppService.GetRoleMenuListAsync(new MenuGetByRoleInput
     {
         Role = role,
         Framework = framework
     }));
 }
Пример #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));
        }
Пример #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));
        }
Пример #5
0
 public virtual async Task <ListResultDto <MenuDto> > GetUserMenuListAsync(MenuGetByUserInput input)
 {
     return(await MenuAppService.GetUserMenuListAsync(input));
 }
Пример #6
0
 public virtual async Task SetUserMenusAsync(UserMenuInput input)
 {
     await MenuAppService.SetUserMenusAsync(input);
 }
Пример #7
0
 public virtual async Task DeleteAsync(Guid id)
 {
     await MenuAppService.DeleteAsync(id);
 }
Пример #8
0
 public virtual async Task <MenuDto> UpdateAsync(Guid id, MenuUpdateDto input)
 {
     return(await MenuAppService.UpdateAsync(id, input));
 }
Пример #9
0
 public virtual async Task <MenuDto> CreateAsync(MenuCreateDto input)
 {
     return(await MenuAppService.CreateAsync(input));
 }
Пример #10
0
 public virtual async Task <PagedResultDto <MenuDto> > GetListAsync(MenuGetListInput input)
 {
     return(await MenuAppService.GetListAsync(input));
 }
Пример #11
0
 public virtual async Task <MenuDto> GetAsync(Guid id)
 {
     return(await MenuAppService.GetAsync(id));
 }