コード例 #1
0
        public async Task <ActionResult <SpaceLightDTO> > ChangeOwnerAsync(Guid id, [FromBody] ChangeSpaceOwnerDTO dto)
        {
            var item = await _spaces.ChangeOwnerAsync(id, dto.OwnerId);

            return(Ok(Mappers.GetSpaceLightDTO(item)));
        }