コード例 #1
0
        public void SyncWebsiteRepositoryName()
        {
            var websites = _websiteManager.GetListEwhWebsite();

            foreach (var web in websites)
            {
                if (string.IsNullOrEmpty(web.GetOwnerId()))
                {
                    web.AddAccount(new AddWebsiteAccountDto()
                    {
                        AccessLevels = new List <string>()
                        {
                            "Owner"
                        }, AccountId = "01ff64fa-2895-41f6-9be6-b57667f1d598"
                    });
                    web.Save();
                }
            }
        }
コード例 #2
0
        public JsonResult GetListWebsite()
        {
            var websites = _websiteManager.GetListEwhWebsite();

            return(Json(websites, JsonRequestBehavior.AllowGet));
        }