예제 #1
0
        public IHttpActionResult GetFavorite(int id)
        {
            FavoriteDTO favorite = _favoritesService.GetById(id);

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

            return(Ok(favorite));
        }