Esempio n. 1
0
 static bool Save(Blog coreBlog, BlogEngine.Core.Data.Models.Blog jsonBlog)
 {
     coreBlog.Id = jsonBlog.Id;
     coreBlog.Name = jsonBlog.Name;
     coreBlog.StorageContainerName = jsonBlog.StorageContainerName;
     coreBlog.Hostname = jsonBlog.Hostname;
     coreBlog.IsAnyTextBeforeHostnameAccepted = jsonBlog.IsAnyTextBeforeHostnameAccepted;
     coreBlog.VirtualPath = jsonBlog.VirtualPath;
     coreBlog.IsActive = jsonBlog.IsActive;
     coreBlog.IsSiteAggregation = jsonBlog.IsSiteAggregation;
     coreBlog.IsPrimary = jsonBlog.IsPrimary;
     //coreBlog.StorageLocation = PhysicalStorageLocation = HostingEnvironment.MapPath(blog.StorageLocation);
     coreBlog.Save();
     return true;
 }