Example #1
0
        public string UpdateAttachmentPath(string msgCode, string fileName, string columnName, string fileRemoved)
        {
            string result = string.Empty;

            try
            {
                DataControl.CurrentInfo objCurInfo = new DataControl.CurrentInfo();
                DataControl.BLMessaging objMsg     = new DataControl.BLMessaging();
                int rowsAffected = objMsg.UpdateAttachmentPath(objCurInfo.GetCompanyCode(), fileName, columnName, msgCode, fileRemoved);
                if (rowsAffected > 0)
                {
                    result = "SUCCESS:";
                }

                else
                {
                    result = "ERROR:";
                }
            }
            catch (Exception ex)
            {
                Dictionary <string, string> dicObj = new Dictionary <string, string>();
                DataControl.Impl.ExceptionHandler.WriteLog(ex: ex, dic: dicObj);
                result = "Sorry. Error while update the attachment file ...";
            }
            return(result);
        }