Beispiel #1
0
        /// <summary>
        /// Контейнер разделов детализации по событиям
        /// </summary>
        public ActionResult EventsDetails(Guid id)
        {
            var repository = CurrentAccountDbContext.GetComponentRepository();
            var component  = repository.GetById(id);

            var model = new EventsDetailsModel()
            {
                Id = component.Id
            };

            return(PartialView(model));
        }
        // GET: Events/Details/5
        public ActionResult Details(int id)
        {
            var e = _manager.GetEvents(id);

            var model = new EventsDetailsModel
            {
                CreationDate     = e.CreationDate,
                LastUpdateDate   = e.LastUpdateDate,
                Author           = e.Author,
                Title            = e.Title,
                ShortDescription = e.ShortDescription,
                Description      = e.Description
            };

            return(PartialView("_Details", model));
        }