Esempio n. 1
0
        public string GetImagePortletList()
        {
            ImagePortletCollection imagePortletList = ImagePortletCollection.GetImagePortletCollection(new Guid(System.Web.HttpContext.Current.Session["ImagePortletDataId"].ToString()));
            var js = new System.Web.Script.Serialization.JavaScriptSerializer();

            return(js.Serialize(imagePortletList));
        }
Esempio n. 2
0
 public void ImagePortletDelete(string[] arrId)
 {
     foreach (string id in arrId)
     {
         var idImagePortlet = new Guid(id);
         ImagePortletCollection.GetImagePortletCollection(new Guid(System.Web.HttpContext.Current.Session["ImagePortletDataId"].ToString())).RemoveDB(ImagePortletCollection.GetImagePortletCollection(new Guid(System.Web.HttpContext.Current.Session["ImagePortletDataId"].ToString())).Single(a => a.Id == idImagePortlet));
     }
 }
Esempio n. 3
0
        public void ImagePortletEdit(string id)
        {
            var idImagePortlet = new Guid(id);

            System.Web.HttpContext.Current.Session["ImagePortletArgs"] = new ImagePortletArgs(ImagePortletCollection.GetImagePortletCollection(new Guid(System.Web.HttpContext.Current.Session["ImagePortletDataId"].ToString())).Single(a => a.Id == idImagePortlet), true);
        }