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)); }
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())); }