public JsonResult AcceptParentSigForEvent(string parentEventString = "")
        {
            RegisteredFeeback feedBack = new RegisteredFeeback();

            try
            {
                JavaScriptSerializer json_serializer = new JavaScriptSerializer();
                ParentRegisterEvent  eventregsister  = json_serializer.Deserialize <ParentRegisterEvent>(parentEventString);
                eventregsister.Events.AgencyId = new Guid(Session["AgencyId"].ToString());
                eventregsister.Events.UserId   = new Guid(Session["UserID"].ToString());
                eventregsister.Events.ClientId = (eventregsister.Events.Enc_ClientId == "0") ? 0 : Convert.ToInt64(EncryptDecrypt.Decrypt64(eventregsister.Events.Enc_ClientId));
                feedBack = new EventsData().AcceptSignatureParent(eventregsister);
                return(Json(feedBack, JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                clsError.WriteException(ex);
                return(Json(feedBack, JsonRequestBehavior.AllowGet));
            }
        }
        public JsonResult RegisterEvent(string parentEventString = "", int mode = 0)
        {
            RegisteredFeeback feedBack = new RegisteredFeeback();

            try
            {
                JavaScriptSerializer json_serializer = new JavaScriptSerializer();
                ParentRegisterEvent  eventregsister  = json_serializer.Deserialize <ParentRegisterEvent>(parentEventString);
                eventregsister.Events.AgencyId = new Guid(Session["AgencyId"].ToString());
                eventregsister.Events.UserId   = new Guid(Session["UserID"].ToString());
                eventregsister.Events.EmailId  = Session["EmailId"].ToString();
                feedBack = new EventsData().RegisterForEventData(eventregsister, mode);
                return(Json(feedBack, JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                clsError.WriteException(ex);
            }
            return(Json(feedBack, JsonRequestBehavior.AllowGet));
        }