public async Task <ActionResult <IEnumerable <Painting> > > GetArtWork()
        {
            var works = data.GetAllWorks();

            if (works.Count <= 0)
            {
                return(NoContent());
            }

            return(works);
        }
Exemple #2
0
        public async Task <ActionResult <IEnumerable <Sculpture> > > GetSculptures()
        {
            var works = data.GetAllWorks();

            if (works.Count <= 0)
            {
                return(NoContent());
            }

            return(works);
        }