public IHttpActionResult GetByUser(string userId) { var wishLists = repo.GetWishListByUser(userId).ToList(); if (wishLists.Any()) { return(Ok(wishLists)); } return(Ok("There is book in your wish list")); }