Exemplo n.º 1
0
        public PartialViewResult SlideImages()
        {
            List <SlideConfigVM> ListOfSlide = new List <SlideConfigVM>();

            try
            {
                using (var _db = new SchoolMSEntities())
                {
                    ListOfSlide = _db.SliderConfigs.Where(s => s.IsActive == true).ToList().Select(s => new SlideConfigVM()
                    {
                        Description = s.Description,
                        SliderImage = s.SliderImage
                    }).ToList();
                }
            }
            catch (Exception ex)
            {
            }
            return(PartialView("_CarasousalSlides", ListOfSlide));
        }