예제 #1
0
        public async Task <IActionResult> AddFriendRequest(UserFriendBL request)
        {
            try
            {
                var res = await _service.AddFriendRequest(request);

                return(Ok(res));
            }
            catch (Exception ex)
            {
                _logger.LogError(ex, "FriendsAPIController.AddFriendRequest");
                return(new StatusCodeResult(500));
            }
        }