public PartialViewResult GetMessages(string date)
        {
            IEnumerable <MessageViewModel> messages = null;
            var user = HttpContext.Session.Get <UserViewModel>(Constants.SessionKeyUserInfo);

            user = user ?? new UserViewModel();
            try
            {
                DateTime _date = DateTime.Parse(date);
                //DateTime _date = DateTime.ParseExact(date,"MM/dd/yyyy", CultureInfo.InvariantCulture);
                messages = dashboardHandler.GetMessages(_date, user.UserId);
            }
            catch (DataNotFound ex)
            {
                Logger.Logger.WriteLog(Logger.Logtype.Error, ex.Message, user.UserId, typeof(DashboardController), ex);
                messages = new List <MessageViewModel>();
            }
            return(PartialView("MessagesPartial", messages));
        }