Exemplo n.º 1
0
        public async Task <IHttpActionResult> GetAllAsync()
        {
            var result = await _spaceService?.GetAllAsync();

            if (result == null || result.Count == 0)
            {
                return(NotFound());
            }

            return(Ok(result));
        }