Ejemplo n.º 1
0
        public List <POS_PRODUCT> List()
        {
            List <POS_PRODUCT> lst = new List <POS_PRODUCT>();

            try
            {
                lst = _objDALProduct.GetProduct();
                return(lst);
            }
            catch (Exception ex)
            {
                if (ex is DALException)
                {
                    throw ex;
                }
                else
                {
                    ExceptionLogger.WriteExceptionInDB(ex, ExceptionLevel.DAL, ExceptionType.Error);
                }
                throw new BALException(ex.Message.ToString());
            }
        }