Example #1
0
        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);
        }
Example #2
0
        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;
        }