public ActionResult Edit(TipoReposicao tiporeposicao)
 {
     if (ModelState.IsValid)
     {
         db.TipoReposicao.Attach(tiporeposicao);
         db.ObjectStateManager.ChangeObjectState(tiporeposicao, EntityState.Modified);
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(tiporeposicao);
 }
        public ActionResult Create(TipoReposicao tiporeposicao)
        {
            if (ModelState.IsValid)
            {
                db.TipoReposicao.AddObject(tiporeposicao);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(tiporeposicao);
        }
 /// <summary>
 /// Deprecated Method for adding a new object to the TipoReposicao EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTipoReposicao(TipoReposicao tipoReposicao)
 {
     base.AddObject("TipoReposicao", tipoReposicao);
 }
 /// <summary>
 /// Create a new TipoReposicao object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 public static TipoReposicao CreateTipoReposicao(global::System.Int32 id)
 {
     TipoReposicao tipoReposicao = new TipoReposicao();
     tipoReposicao.Id = id;
     return tipoReposicao;
 }