public ActionResult Index()
        {
            var whosOnline = _context.Users
                .OrderByDescending(u => u.LastActivityDate)
                .ToList()
                .Select(o => new UserDto()
                {
                    Id = o.Id,
                    UserName = o.UserName,
                    FullName = o.FullName,
                    Gender = o.Gender,
                    LastActivityDateString = o.LastActivityDate == DateTime.MinValue ? "" : o.LastActivityDate.AddMinutes(TimeDateServices.GetUtcOffSet()).ToString("MMM-dd-yyyy HH:mm"),
                    LastActivityDate = o.LastActivityDate,
                    Browser = o.Browser,
                    Os = o.Os
                });

            var vm = new DashBoardViewModel
            {
                WhosOnline = whosOnline,
                CurrentUser = _currentUser.User

            };

            return View(vm);
        }
        public IEnumerable<DashBoardViewModel> GetMessages_Waiting()
        {
            var newMessagesList = _context.Messages
                .Where(m => m.Waiting)
                .OrderByDescending(m => m.MessageDate)
                .ToList()
                .Select(m => new MessageViewModel()
                {
                    Subject = m.Subject,
                    Body = m.Body,
                    MessageStringDate = m.MessageDate.ToString("MMM-dd-yyyy hh:mm tt"),
                    FromAddress = m.FromAddress,
                    WriterUserId = m.WriterUserId,
                    MessageId = m.Id
                });

            var messages = new List<DashBoardViewModel>();

            foreach (var message in newMessagesList)
            {
                var newMessage = new DashBoardViewModel
                {
                    UserName = string.IsNullOrEmpty(message.UserName) ? message.FromAddress : message.UserName,
                    Subject = message.Subject,
                    Body = message.Body,
                    MessageStringDate = message.MessageStringDate,
                    MessageDate = message.MessageDate,
                    WriterUserId = message.WriterUserId,
                    MessageId = message.MessageId
                };

                messages.Add(newMessage);
            }
            return messages.AsEnumerable();
        }