public async Task <ActionResult <IEnumerable <PermissionTypeDto> > > GetAll() { var items = await _service.GetAsync(); var itemsDto = _mapper.Map <IEnumerable <PermissionType>, IEnumerable <PermissionTypeDto> >(items); return(Ok(itemsDto)); }
public async Task <ActionResult <IEnumerable <PermissionTypeDto> > > GetAll() { var items = await _service.GetAsync(); var itemsDto = _mapper.Map <IEnumerable <PermissionType>, IEnumerable <PermissionTypeDto> >(items); return(Ok(itemsDto)); }