public PartialViewResult GetAdvertisment(string positionKey) { List<T_Slide> SlideList = new List<T_Slide>(); T_ConfigServices _configServices = new T_ConfigServices(); T_Config Model = _configServices.GetByKey(positionKey); if (Model != null) { int GroupSildeID = 0; bool result = int.TryParse(Model.Value, out GroupSildeID); if (result && GroupSildeID > 0) { T_SlideServices slideServices = new T_SlideServices(); SlideList = slideServices.GetSlideByGroupID(GroupSildeID).Where(m=> m.Enable == true).ToList(); } } return PartialView("GetAdvertisment", SlideList); }
public PartialViewResult GetSlideOne(int id, string width = "200px", string height = "200px") { T_SlideServices _slideServices = new T_SlideServices(); ViewBag.Subfix = TNVTH.Web.Utilities.Common.GetUniqueString(); ViewBag.SlideWidth = width; ViewBag.SlideHeight = height; IEnumerable<T_Slide> slideImages = _slideServices.GetSlideByGroupID(id); return PartialView("GetSlideOne", slideImages.ToList()); }
public PartialViewResult GetSlide() { T_SlideServices _slideServices = new T_SlideServices(); int SlideGroupID = 0; int.TryParse(GlobalConfig.Instance.GetValue(Utilities.Config.SlideChinhGroupID.ToString()), out SlideGroupID); IEnumerable<T_Slide> slideImages = _slideServices.GetSlideByGroupID(SlideGroupID); return PartialView("GetSlide", slideImages); }
public PartialViewResult GetCarousel(int id) { T_SlideServices _slideServices = new T_SlideServices(); IEnumerable<T_Slide> slideImages = _slideServices.GetSlideByGroupID(id); return PartialView("GetCarousel", slideImages.ToList()); }