public async Task <ActionResult <IEnumerable <V1DTO.PermissionDTO> > > GetPermissions() { return(Ok((await _bll.Permissions.GetAllAsync()).Select(e => _mapper.Map(e)))); }
public IEnumerable <IPermission> GetPermissions() { var mapper = new PermissionMapper(); return(mapper.Map(queryService.GetPermissions())); }
public IActionResult All() { var permissionList = _employeePermissionStore.AllPermissions(); return(Ok(_permissionMapper.Map(permissionList))); }