Ejemplo n.º 1
0
 public tbl_Content ApproveContent(int sectionID, int contentID = 0)
 {
     if (contentID == 0)
     {
         tbl_SiteMap section = SitemapRepository.GetByID(sectionID);
         if (section != null)
         {
             contentID = section.tbl_Content.Where(c => !c.C_Deleted).OrderByDescending(c => c.C_ModificationDate).Select(c => c.ContentID).FirstOrDefault();
         }
     }
     return(ContentRepository.ApproveContent(contentID));
 }