public JsonResult GetNewEventsForUser()
        {
            var events = this.eventService.GetAllForUser(
                this.User.Identity.GetUserId())
                         .Where(x => (!x.IsSeen));

            var viewModel = events.ToList().ConvertAll(
                x => new AssetEventViewModel
            {
                Content       = StaticFunctions.TranslateDynamicEvent(x.Content),
                RelocationUrl = x.EventRelocationUrl,
                Id            = x.Id
            });

            viewModel.Reverse();

            return(Json(viewModel, JsonRequestBehavior.AllowGet));
        }
        public ActionResult GetAllForUser()
        {
            var events = this.eventService.GetAllForUser(
                this.User.Identity.GetUserId()).Reverse();

            var viewModel = events.ToList().ConvertAll(
                x => new AssetEventViewModel
            {
                Content       = StaticFunctions.TranslateDynamicEvent(x.Content),
                Date          = x.Date.ToString(),
                IsSeen        = x.IsSeen,
                RelocationUrl = x.EventRelocationUrl
            });

            //Set event are seen
            this.eventService.SetSeenForUser(this.User.Identity.GetUserId());

            return(View(viewModel));
        }