Esempio n. 1
0
        public async Task <ActionResult <IEnumerable <PermissionTypeDto> > > GetAll()
        {
            var items = await _service.GetAsync();

            var itemsDto = _mapper.Map <IEnumerable <PermissionType>, IEnumerable <PermissionTypeDto> >(items);

            return(Ok(itemsDto));
        }