Exemple #1
0
        public ActionResult AdvertisersEdit(long siteId, long menuId, long?id)
        {
            ViewBag.SiteID = siteId;
            ViewBag.MenuID = menuId;

            AdvertisersModel item = null;

            if (id != null)
            {
                item = AdvertisementDAO.GetAdvertisersItem((long)id);
            }
            if (item == null)
            {
                item = new AdvertisersModel {
                    ID = WorkLib.GetItem.NewSN(), IsIssue = true, Sort = int.MaxValue
                }
            }
            ;

            return(View(item));
        }