Пример #1
0
        public ActionResult Index(int homeBoxID)
        {
            ViewBag.Title = "مدیریت " + HomeBoxes.GetByID(homeBoxID).Title;

            AjaxSettings settings = new AjaxSettings
            {
                Url = "/HomeBoxProducts/Search"
            };

            return(View(model: settings));
        }
Пример #2
0
        public ActionResult Edit(int?id)
        {
            HomeBox homeBox;

            if (id.HasValue)
            {
                homeBox = HomeBoxes.GetByID(id.Value);
            }
            else
            {
                homeBox = new HomeBox();
            }

            return(View(homeBox));
        }