예제 #1
0
        // GET: api/Favorites
        public IHttpActionResult GetFavorites()
        {
            List <FavoriteDTO> favorites = _favoritesService.GetAll();

            if (favorites == null)
            {
                return(NotFound());
            }

            return(Ok(favorites));
        }