コード例 #1
0
        public ActionResult Index()
        {
            ViewBag.Index = "active";

            var list = _testimonialService.FindBy(x => x.IsActive == true).OrderByDescending(x => x.CreatedDate);

            return(View(list));
        }
コード例 #2
0
        public ActionResult Publish(Guid id)
        {
            var eventEntity = _testimonialService.FindBy(x => x.Id == id).Single();

            return(View(eventEntity));
        }