Example #1
0
        /// <summary>
        /// save data in business layer
        /// </summary>
        /// <param name="dt"></param>
        /// <param name="fieldsList"></param>
        /// <returns></returns>
        public string BusinessSaveData(System.Data.DataTable dt, System.Collections.ArrayList fieldsList)
        {
            string errMsg = "";
            string chkMsg = "";

            chkMsg = CheckBusinessDataAndLogic(dt, fieldsList);
            if (chkMsg.Trim().Length == 0)
            {
                _ida.CurDataTable = dt;
                errMsg            = _ida.Save();
            }
            else
            {
                errMsg = chkMsg;
            }
            return(errMsg);
        }