Example #1
0
        public ActionResult GetListConferenceForUser()
        {
            var idString       = User.Identity.GetUserId();
            var id             = _userService.GetUserIdByAspId(idString);
            var listIdOfConfer = _conService.ListConferIdsByMemberId(id);
            var conference     = _conService.GetConferList(listIdOfConfer);

            List <ConferenceViewModel> model = new List <ConferenceViewModel>();

            foreach (var item in conference)
            {
                ConferenceViewModel confer = new ConferenceViewModel();
                confer.Id    = item.Id;
                confer.Thema = item.Thema;
                confer.Date  = Convert.ToDateTime(item.Date);
                confer.Place = item.Place;
                model.Add(confer);
            }


            return(View(model));
        }