public ActionResult Edit([Bind(Include = "id,previd,parentidPrev,parentid,title,state,menuType_id,site_id,сontent_id")] Menus menus) { if (ModelState.IsValid) { menusHandler.Update(menus); return(RedirectToAction("Index")); } ViewBag.сontent_id = new SelectList(_contentsHandler.All(), "id", "title", menus.сontent_id); ViewBag.menuType_id = new SelectList(menutypesHandler.All(), "id", "title", menus.menuType_id); ViewBag.site_id = new SelectList(sitesHandler.All(), "id", "title", menus.site_id); return(View(menus)); }
/// <summary> /// Allows the game to run logic such as updating the world, /// checking for collisions, gathering input, and playing audio. /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> protected override void Update(GameTime gameTime) { base.Update(gameTime); Actions.GetInstance().Update(Keyboard.GetState()); currentMenu.Update(gameTime); }
public int Update(MenusInfo model) { return(dal.Update(model)); }
public HttpResponseMessage Put(Guid id, [FromBody] Menu row) { _process.Update(id, row, UpdatedId); return(Request.CreateResponse(HttpStatusCode.OK)); }