Пример #1
0
 public async Task <ActionResult <IEnumerable <V1DTO.PermissionDTO> > > GetPermissions()
 {
     return(Ok((await _bll.Permissions.GetAllAsync()).Select(e => _mapper.Map(e))));
 }
Пример #2
0
        public IEnumerable <IPermission> GetPermissions()
        {
            var mapper = new PermissionMapper();

            return(mapper.Map(queryService.GetPermissions()));
        }
Пример #3
0
        public IActionResult All()
        {
            var permissionList = _employeePermissionStore.AllPermissions();

            return(Ok(_permissionMapper.Map(permissionList)));
        }