public PortfolioEntry Add_Html_Page(string title, string html) { var entry = new PortfolioEntry(); entry.Title = title; entry.Type = PORTFOLIO_ENTRY_TYPE.HTML; entry.Description = html; entry.TenantId = TenantId; //These fields are not used. entry.Image = ""; Portfolio.Add(entry); return(entry); }
public PortfolioEntry Add_ImageAndDescription_Page(string title, string description, HttpPostedFileBase image) { var entry = new PortfolioEntry(); entry.Type = PORTFOLIO_ENTRY_TYPE.IMAGE; entry.Title = title; entry.Description = description; entry.TenantId = TenantId; if (image != null && image.ContentLength > 0) { entry.SaveImage(image); } Portfolio.Add(entry); return(entry); }
public PortfolioEntry Add_ImageAndDescription_Page(string type, string title, string description, string imagePath = null) { var entry = new PortfolioEntry(); entry.Type = type; entry.Title = title; entry.Description = description; entry.TenantId = TenantId; if (imagePath != null) { entry.Image = imagePath; } Portfolio.Add(entry); return(entry); }
public PortfolioEntry Add_ImageAndDescription_Page(string title, string description, HttpPostedFileBase image) { var entry = new PortfolioEntry(); entry.Type = PORTFOLIO_ENTRY_TYPE.IMAGE; entry.Title = title; entry.Description = description; entry.TenantId = TenantId; if (image != null && image.ContentLength > 0) entry.SaveImage(image); Portfolio.Add(entry); return entry; }
public PortfolioEntry Add_ImageAndDescription_Page(string type, string title, string description, string imagePath = null) { var entry = new PortfolioEntry(); entry.Type = type; entry.Title = title; entry.Description = description; entry.TenantId = TenantId; if (imagePath != null) entry.Image = imagePath; Portfolio.Add(entry); return entry; }
public PortfolioEntry Add_Html_Page(string title, string html) { var entry = new PortfolioEntry(); entry.Title = title; entry.Type = PORTFOLIO_ENTRY_TYPE.HTML; entry.Description = html; entry.TenantId = TenantId; //These fields are not used. entry.Image = ""; Portfolio.Add(entry); return entry; }