Exemple #1
0
        public async Task <IActionResult> AssignFollowerFollowed(int followerId, int followedId)
        {
            var result = await _followService.AssignFollowerFollowedAsync(followerId, followedId);

            if (!result.Success)
            {
                return(BadRequest(result.Message));
            }

            var followedResource = _mapper.Map <Musician, MusicianResource>(result.Resource.Followed);

            return(Ok(followedResource));
        }