Beispiel #1
0
        public ActionResult Banner(int?Position)
        {
            shBannerService _banner = new shBannerService();

            if (!Position.HasValue)
            {
                Position = PositionBanner.Position_GioiThieu.GetHashCode();
            }

            shBanner banner = _banner.DanhSachBanner_ByPositionBanner(Position.Value);

            return(PartialView("Banner", banner));
        }
Beispiel #2
0
        public ActionResult Create(string id)
        {
            ViewBag.BannerGuid = id;
            if (!string.IsNullOrWhiteSpace(id))
            {
                shBannerService _banner = new shBannerService();
                shBanner        banner  = _banner.FindByKey(id);

                if (banner != null)
                {
                    return(View(banner));
                }
            }

            return(View(new shBanner()));
        }