Beispiel #1
0
        public async Task <IActionResult> AddFriendForCurrentUser([FromBody] FriendDto friendToAdd)
        {
            var result = await _friendService.AddFriendForCurrentUser(friendToAdd);

            if (!result.Succeeded)
            {
                return(BadRequest(result));
            }

            return(Ok(result));
        }