public async Task <IActionResult> GetPermissions() { var permissions = await _permissionBusiness.GetAll(); var permissionsDTO = _mapper.Map <IEnumerable <PermissionDTO> >(permissions); return(Ok(permissionsDTO)); }
public IActionResult Get() { return(Ok(_permissionBusiness.GetAll())); }