public SubContentDetail Save(SubContentDetail detail)
 {
     using (var db = new CEEntities())
     {
         var existContent = GetSubContentDetail(detail.Id);
         if (existContent == null)
         {
             db.SubContentDetail.Add(detail);
         }
         else
         {
             detail.Id = existContent.Id;
             existContent = detail;
         }
         db.SaveChanges();
         return GetSubContentDetail(detail.Id);
     }
 }
 public SubContentDetail SaveSubContentDetail(SubContentDetail subContentDetail)
 {
     return Save(subContentDetail, subContentDetailData.Save);
 }