Ejemplo n.º 1
0
        /// <summary>
        /// Delete Host
        /// </summary>
        /// <param name="iProspectId"></param>
        private void DeleteHost(Int64 iProspectId)
        {
            Int64 ireturnvalue = 0;
            //HealthYes.Web.UI.FranchisorService.FranchisorService service = new HealthYes.Web.UI.FranchisorService.FranchisorService();
            //service.DeleteHost(iProspectId, true, out ireturnvalue, out blnreturnvalue);
            FranchisorDAL objFranchisorDal = new FranchisorDAL();

            //mode - 2 delete host
            ireturnvalue = objFranchisorDal.DeleteProspectHost(2, iProspectId);
            if (ireturnvalue == 1)
            {
                XmlDeclartion = XmlDeclartion + "<result>1</result>";
                Response.Write(XmlDeclartion);
            }
            else if (ireturnvalue == 2)
            {
                XmlDeclartion = XmlDeclartion + "<result>2</result>";
                Response.Write(XmlDeclartion);
            }
            else
            {
                XmlDeclartion = XmlDeclartion + "<result>0</result>";
                Response.Write(XmlDeclartion);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Delete prospect
        /// </summary>
        /// <param name="iProspectId"></param>
        private void DeleteProspect(Int64 iProspectId)
        {
            Int64         ireturnvalue     = 0;
            FranchisorDAL objFranchisorDal = new FranchisorDAL();

            //mode - 1 for delete prospect
            ireturnvalue = objFranchisorDal.DeleteProspectHost(1, iProspectId);
            // clear response
            Response.Clear();
            Response.ContentType = "text/xml";

            if (ireturnvalue == 1)
            {
                XmlDeclartion = XmlDeclartion + "<result>1</result>";
                Response.Write(XmlDeclartion);
            }
            else
            {
                XmlDeclartion = XmlDeclartion + "<result>0</result>";
                Response.Write(XmlDeclartion);
            }
        }