Beispiel #1
0
        public ActionResult GetAllReport(Guid confId)
        {
            List <Guid>             listId = new List <Guid>();
            List <ReportsViewModel> model  = new List <ReportsViewModel>();

            if (confId != null)
            {
                listId = _conferencService.GetListReports(confId).ToList();
            }
            foreach (var id in listId)
            {
                var report            = _conferencService.GetReport(id);
                ReportsViewModel item = new ReportsViewModel
                {
                    Id     = report.Id,
                    Title  = report.Title,
                    Author = report.Author,
                    ConfId = confId
                };

                model.Add(item);
            }
            return(PartialView("_GetAllReport", model));
        }