public POS_PRODUCT GetById(long?id) { try { _objProductEntity = _objDALProduct.GetById(id); return(_objProductEntity); } catch (Exception ex) { if (ex is DALException) { throw ex; } else { ExceptionLogger.WriteExceptionInDB(ex, ExceptionLevel.DAL, ExceptionType.Error); } throw new BALException(ex.Message.ToString()); } }