Example #1
0
        public async Task <ActionResult <IEnumerable <SpaceLightDTO> > > GetAsync()
        {
            var items = await _spaces.GetAllAsync();

            var dto = items.Select(o => Mappers.GetSpaceLightDTO(o)).ToList();

            return(Ok(dto));
        }