public string GetAllContent()
        {
            JSonResult result = new JSonResult();
            result.Status = false;

            List<GetContent> allContent = new List<GetContent>();
            Content content = new Content();
            DataSet ds = content.GetAllContent();

            foreach (DataRow dr in ds.Tables[0].Rows)
            {
                GetContent eachContent = new GetContent();
                eachContent.ContentId = dr["ContentId"].ToString();
                eachContent.ContentName = dr["ContentName"].ToString();
                eachContent.ReferenceContentId = dr["ReferenceContentId"].ToString();
                string masterContentName;
                content.GetContentName(Convert.ToInt32(dr["ReferenceContentId"]), out masterContentName);
                eachContent.MasterContentName = masterContentName;
                eachContent.ContentType = dr["ContentType"].ToString();

                allContent.Add(eachContent);
            }

            result.Status = true;
            JavaScriptSerializer serializer = new JavaScriptSerializer();
            string jsonresult = serializer.Serialize(allContent);

            return jsonresult;
        }
        public string CreateNewContent(string contentName, string masterContentName)
        {
            JSonResult result = new JSonResult();
            result.Status = false;

            Content content = new Content();
            result.Status = content.CreateNewContent(contentName, masterContentName);

            JavaScriptSerializer serializer = new JavaScriptSerializer();
            string jsonresult = serializer.Serialize(result.Status);

            return jsonresult;
        }
        public string Saveposition(string contentName, int x, int y, int width, int height)
        {
            JSonResult result = new JSonResult();
            result.Status = false;

            Content cont = new Content();
            cont.UpdateContentPosition(contentName, x + "_" + y + "_" + width + "_" + height);

            result.Status = true;
            JavaScriptSerializer serializer = new JavaScriptSerializer();
            string jsonresult = serializer.Serialize(result.Status);

            return jsonresult;
        }
        public string GetContentPosition(string contentName)
        {
            JSonResult result = new JSonResult();
            result.Status = false;

            Content cont = new Content();
            DataSet ds = cont.GetContentPosition(contentName);
            string position = "";
            List<GetContent> allContent = new List<GetContent>();
            foreach (DataRow dr in ds.Tables[0].Rows){
             GetContent eachContent = new GetContent();
                eachContent.Position = dr["Position"].ToString();
                eachContent.Image = dr["Image"].ToString();
                allContent.Add(eachContent);

            }
            result.Status = true;
            JavaScriptSerializer serializer = new JavaScriptSerializer();
            string jsonresult = serializer.Serialize(allContent);

            return jsonresult;
        }