示例#1
0
        public ActionResult <FriendViewModel> GetFriendsAsync()
        {
            var friends = _userQueries.GetFriendsAsync();

            return(Ok(friends));
        }
        public async Task <ActionResult <ResponseWrapper> > GetFriendsAsync()
        {
            var friends = await _userQueries.GetFriendsAsync();

            return(Ok(ResponseWrapper.CreateOkResponseWrapper(friends)));
        }