Exemple #1
0
        public bool Update(object obj)
        {
            bool blnResult = false;

            try
            {
                strvalidationResult = ValidationEntry(obj);
                if (strvalidationResult.Count() == 0)
                {
                    if (objDAL.Update(obj))
                    {
                        blnResult = true;
                    }
                }
                else
                {
                    throw new Exception(string.Join("<br />", strvalidationResult));
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(blnResult);
        }
Exemple #2
0
        public bool Update(object obj)
        {
            bool blnResult = false;

            try
            {
                if (objDAL.Update(obj))
                {
                    blnResult = true;
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(blnResult);
        }