public virtual async Task <ListResultDto <MenuDto> > GetRoleMenuListAsync(string role, PlatformType platformType) { return(await MenuAppService.GetRoleMenuListAsync(new MenuGetByRoleInput { Role = role, PlatformType = platformType })); }
public virtual async Task <ListResultDto <MenuDto> > GetRoleMenuListAsync(string role, string framework) { return(await MenuAppService.GetRoleMenuListAsync(new MenuGetByRoleInput { Role = role, Framework = framework })); }
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)); }
public virtual async Task SetUserMenusAsync(UserMenuInput input) { await MenuAppService.SetUserMenusAsync(input); }
public virtual async Task DeleteAsync(Guid id) { await MenuAppService.DeleteAsync(id); }
public virtual async Task <MenuDto> UpdateAsync(Guid id, MenuUpdateDto input) { return(await MenuAppService.UpdateAsync(id, input)); }
public virtual async Task <MenuDto> CreateAsync(MenuCreateDto input) { return(await MenuAppService.CreateAsync(input)); }
public virtual async Task <PagedResultDto <MenuDto> > GetListAsync(MenuGetListInput input) { return(await MenuAppService.GetListAsync(input)); }
public virtual async Task <MenuDto> GetAsync(Guid id) { return(await MenuAppService.GetAsync(id)); }