Пример #1
0
        public async Task <ActionResult <IReadOnlyCollection <LandingDto> > > GetAllLandingAsync()
        {
            var landings = await _sitesService.GetAllLandingAsync();

            if (landings == null)
            {
                return(NotFound("Collection was empty"));
            }
            return(Ok(landings));
        }