Пример #1
0
        public IActionResult Index()
        {
            var userId        = Int32.Parse(HttpContext.User.Claims.ToList()[0].Value);
            var eventWrappers = serviceService.GetEventWrappersByUserId(userId);

            var viewModelList = GeneralHelper.MapEventWrapperList(eventWrappers);

            return(View(viewModelList));
        }