public static WebResourceItem WebResourceItemFromNew(NewWebResource newWebResource, Guid solutionId)
        {
            WebResourceItem webResourceItem = new WebResourceItem
            {
                WebResourceId = newWebResource.NewId,
                Name          = newWebResource.NewName,
                DisplayName   = newWebResource.NewDisplayName,
                TypeName      = Crm.WebResource.GetWebResourceTypeNameByNumber(newWebResource.NewType.ToString()),
                Type          = newWebResource.NewType,
                SolutionId    = solutionId
            };

            return(webResourceItem);
        }
        public static WebResourceItem WebResourceItemFromNew(NewWebResource newWebResource, Guid solutionId, ObservableCollection <MenuItem> projectFolders)
        {
            WebResourceItem webResourceItem = new WebResourceItem
            {
                WebResourceId  = newWebResource.NewId,
                Name           = newWebResource.NewName,
                DisplayName    = newWebResource.NewDisplayName,
                TypeName       = Crm.WebResource.GetWebResourceTypeNameByNumber(newWebResource.NewType.ToString()),
                Type           = newWebResource.NewType,
                ProjectFolders = projectFolders,
                SolutionId     = solutionId
            };

            return(webResourceItem);
        }
        public static WebResourceItem WebResourceItemFromNew(NewWebResource newWebResource, Guid solutionId)
        {
            WebResourceItem webResourceItem = new WebResourceItem
            {
                WebResourceId       = newWebResource.NewId,
                Name                = newWebResource.NewName,
                DisplayName         = newWebResource.NewDisplayName,
                TypeName            = WebResourceTypes.GetWebResourceTypeNameByNumber(newWebResource.NewType.ToString()),
                Type                = newWebResource.NewType,
                SolutionId          = solutionId,
                Description         = newWebResource.NewDescription,
                PreviousDescription = newWebResource.NewDescription,
                IsManaged           = false
            };

            return(webResourceItem);
        }