コード例 #1
0
        private Guid GetUserIdFromYafId(string yafUserId)
        {
            var yafService = new YafService(Ioc.GetInstance <IYafRepository>());

            var userResult = yafService.GetUserIdFromYafId(int.Parse(yafUserId));

            return(new Guid(userResult.ProviderUserKey));
        }
コード例 #2
0
        private void Bind()
        {
            YafService service = new YafService(Ioc.GetInstance <IYafRepository>());

            var topics = service.GetRecentTopics();

            rptRecentTopics.DataSource = topics;

            rptRecentTopics.DataBind();
        }