Esempio n. 1
0
 public Boolean insertContactUs(ContactBiz oContactBiz)
 {
     try
     {
         ContactData oContactData = new ContactData();
         return oContactData.insertContactUs(oContactBiz);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 2
0
        public Boolean insertContactUs(ContactBiz oContactBiz)
        {
            CDL.CoreDataLayer objCoreDataLayer = new CDL.CoreDataLayer();
              Boolean flag = false;
              try
              {

              string strRetValue = string.Empty;

              strRetValue = objCoreDataLayer.ExecuteScalar("pr_insContactUs", new object[] { oContactBiz.ContactName, oContactBiz.Email, oContactBiz.Subject, oContactBiz.Comments, oContactBiz.IsContact, oContactBiz.FeedbackType }, true);

              if (strRetValue == "0")
                  flag = true;

              }
              catch (Exception ex)
              {
              throw ex;
              }

              return flag;
        }