public ActionResult Index(int homeBoxID) { ViewBag.Title = "مدیریت " + HomeBoxes.GetByID(homeBoxID).Title; AjaxSettings settings = new AjaxSettings { Url = "/HomeBoxProducts/Search" }; return(View(model: settings)); }
public ActionResult Edit(int?id) { HomeBox homeBox; if (id.HasValue) { homeBox = HomeBoxes.GetByID(id.Value); } else { homeBox = new HomeBox(); } return(View(homeBox)); }