Exemple #1
0
        public async Task <IActionResult> GetFriendRequests()
        {
            try
            {
                var res = await _service.GetFriendRequests();

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