Exemple #1
0
        public JsonResult GetSliderList()
        {
            using (SliderManager sliderManager = new SliderManager())
            {
                List <SliderViewModel> sliderList = sliderManager.ListQueryable().Where(x => !x.isDeleted).Select(x => new SliderViewModel
                {
                    Id        = x.Id,
                    imageUrl  = x.imageUrl,
                    isActive  = x.isActive,
                    isDeleted = x.isDeleted,
                    Name      = x.Name,
                    Priority  = x.Priority,
                    Url       = x.Url
                }).ToList();


                return(Json(sliderList, JsonRequestBehavior.AllowGet));
            }
        }