public virtual async Task <ListResultDto <MenuDto> > GetUserMenuListAsync(MenuGetByUserInput input) { var menus = await MenuRepository.GetUserMenusAsync(input.UserId, input.Roles, input.PlatformType); return(new ListResultDto <MenuDto>( ObjectMapper.Map <List <Menu>, List <MenuDto> >(menus))); }
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)); }
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)); }
public virtual async Task <ListResultDto <MenuDto> > GetUserMenuListAsync(MenuGetByUserInput input) { return(await MenuAppService.GetUserMenuListAsync(input)); }