Пример #1
0
    public async Task <ActionResult <PermissionTypeDto> > Get(int permissionTypeId)
    {
        var result = await _permissionTypeService.GetPermissionType(permissionTypeId);

        return(Ok(result));
    }
Пример #2
0
        public async Task <ActionResult <PermissionTypeDto> > Get(int permissionTypeId)
        {
            var result = await _permissionTypeService.GetPermissionType(permissionTypeId);

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