Exemplo n.º 1
0
    public async Task <ActionResult <PermissionTypeDto> > Get(int permissionTypeId)
    {
        var result = await _permissionTypeService.GetPermissionType(permissionTypeId);

        return(Ok(result));
    }
Exemplo n.º 2
0
        public async Task <ActionResult <PermissionTypeDto> > Get(int permissionTypeId)
        {
            var result = await _permissionTypeService.GetPermissionType(permissionTypeId);

            return(StatusCode(result.StatusCode, result.HttpResponse));
        }