Example #1
0
        private bool StoreMessage(ContactViewModel model)
        {
            ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);

            try
            {
                //Store in DB
                ContactHelper ch       = new ContactHelper();
                int?          returnId = ch.Create(model);
                return(true);
            }
            catch (System.Exception ex)
            {
                log.Error("Form Error", ex);
                return(false);
            }
        }