Beispiel #1
0
        public DashboardVo GetUserDashboard(UserVo userVo, string KeyName)
        {
            DashboardVo  dashboardVo  = null;
            DashboardDao dashboardDao = new DashboardDao();

            try
            {
                dashboardVo = dashboardDao.GetUserDashboard(userVo, KeyName);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();

                FunctionInfo.Add("Method", "DashboardBo.cs:GetUserDashboard()");


                object[] objects = new object[2];
                objects[0] = userVo;
                objects[1] = KeyName;

                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }

            return(dashboardVo);
        }