예제 #1
0
        public ActionResult Dashboard()
        {
            Dashboard obj            = new Dashboard();
            string    LoginPartyCode = "";

            if (Session["LoginUser"] != null)
            {
                LoginPartyCode = (Session["LoginUser"] as User).PartyCode;
            }
            obj = objDashboardManager.GetDashboard(LoginPartyCode);

            //Added log
            string hostName    = Dns.GetHostName();
            string myIP        = Dns.GetHostEntry(hostName).AddressList[0].ToString();
            string currentDate = DateTime.Now.ToString("yyyyMMddHHmmssfff");

            objLogManager.SaveLog(Session["LoginUser"] as User, "Fetched dashboard details for user.", myIP + currentDate);

            return(View(obj));
        }