// GET: api/Favorites public IHttpActionResult GetFavorites() { List <FavoriteDTO> favorites = _favoritesService.GetAll(); if (favorites == null) { return(NotFound()); } return(Ok(favorites)); }