Ejemplo n.º 1
0
        public bool FollowArtist(AddFollowArtistRequest follow)
        {
            Follow followArtist = new Follow();

            followArtist.ArtistId = follow.ArtistId;
            followArtist.UserId   = follow.UserId;
            db.ArtistFollow.Add(followArtist);
            db.SaveChanges();
            return(true);
        }
 public IActionResult FollowArtist(AddFollowArtistRequest follow)
 {
     return(Ok(repository.FollowArtist(follow)));
 }