/// <summary>
        /// 存新的项目内容对应关系
        /// </summary>
        /// <param name="request"></param>
        /// <param name="project"></param>
        /// <param name="user"></param>
        /// <param name="database"></param>
        public static ProjectContentType GetCommunicationOperationProjectContentType(this HttpRequest request, Project project, User user, IDatabase database)
        {
            var projectContents = database.ProjectContentTypes.Where(pct => pct.Project == project);

            if (projectContents != null)
            {
                foreach (var item in projectContents)
                {
                    item.Delete(database);
                }
            }

            //var isCondition = false;
            //var isContent = true;
            //var isTeem = true;
            //var isCommunate = true;

            //if (isCondition)
            //{
            //    var contentType = database.ContentTypes.GetByID(1);
            //    var projectContentType = new ProjectContentType();
            //    projectContentType.Project = project;
            //    projectContentType.ContentType = contentType;
            //    projectContentType.Save(database);
            //}
            //if (isContent)
            //{
            //    var contentType = database.ContentTypes.GetByID(2);
            //    var projectContentType = new ProjectContentType();
            //    projectContentType.Project = project;
            //    projectContentType.ContentType = contentType;
            //    projectContentType.Save(database);
            //}
            //if (isTeem)
            //{
            //    var contentType = database.ContentTypes.GetByID(3);
            //    var projectContentType = new ProjectContentType();
            //    projectContentType.Project = project;
            //    projectContentType.ContentType = contentType;
            //    projectContentType.Save(database);
            //}

            var contentType = database.ContentTypes.GetByID(4);
            var projectContentType = new ProjectContentType();
            projectContentType.Project = project;
            projectContentType.ContentType = contentType;
            return projectContentType;
        }
 /// <summary>
 /// 存项目内容对应关系
 /// </summary>
 /// <param name="request"></param>
 /// <param name="project"></param>
 /// <param name="user"></param>
 /// <param name="database"></param>
 public static void SaveProjectContentType(this HttpRequest request, Project project, User user, IDatabase database)
 {
     var projectContents = database.ProjectContentTypes.Where(pct => pct.Project==project);
     if(projectContents!=null)
         foreach (var item in projectContents)
         {
             item.Delete(database);
         }
     var isCondition = request.GetBoolean("IsConditionConstruct").Value;
     var isContent = request.GetBoolean("IsContentConstruct").Value;
     var isTeem = request.GetBoolean("IsTeemConstruct").Value;
     //var isCommunate = request.GetBoolean("IsCommunateConstruct").Value;
     if (isCondition)
     {
         var contentType = database.ContentTypes.GetByID(1);
         var projectContentType = new ProjectContentType();
         projectContentType.Project = project;
         projectContentType.ContentType = contentType;
         projectContentType.Save(database);
     }
     if (isContent)
     {
         var contentType = database.ContentTypes.GetByID(2);
         var projectContentType = new ProjectContentType();
         projectContentType.Project = project;
         projectContentType.ContentType = contentType;
         projectContentType.Save(database);
     }
     if (isTeem)
     {
         var contentType = database.ContentTypes.GetByID(3);
         var projectContentType = new ProjectContentType();
         projectContentType.Project = project;
         projectContentType.ContentType = contentType;
         projectContentType.Save(database);
     }
        /* if (isCommunate)
     {
         var contentType = database.ContentTypes.GetByID(4);
         var projectContentType = new ProjectContentType();
         projectContentType.Project = project;
         projectContentType.ContentType = contentType;
         projectContentType.Save(database);
     }*/
 }