public void Insert(WebSitesInfo websiteinfo)
 {
     if (string.IsNullOrWhiteSpace(websiteinfo.ID))
     {
         websiteinfo.ID = Guid.NewGuid().ToString();
     }
     this._dataSourse.AddOrUpdate(websiteinfo);
 }
        public WebSitesInfo Get(string id)
        {
            WebSitesInfo websiteinfo;

            if (WebsiteDataSource._dataforce.TryGetValue(id, out websiteinfo))
            {
                return(websiteinfo);
            }
            websiteinfo = new WebSitesInfo()
            {
                ID = string.Empty
            };
            return(websiteinfo);
        }
 public void AddOrUpdate(WebSitesInfo websiteinfo)
 {
     WebsiteDataSource._dataforce.AddOrUpdate(websiteinfo.ID, websiteinfo, (key, oldValue) => websiteinfo);
 }