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

            return View(tipotransacao);
        }
 /// <summary>
 /// Deprecated Method for adding a new object to the TipoTransacao EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTipoTransacao(TipoTransacao tipoTransacao)
 {
     base.AddObject("TipoTransacao", tipoTransacao);
 }
 /// <summary>
 /// Create a new TipoTransacao object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="sigla">Initial value of the Sigla property.</param>
 /// <param name="descricao">Initial value of the Descricao property.</param>
 public static TipoTransacao CreateTipoTransacao(global::System.Int32 id, global::System.String sigla, global::System.String descricao)
 {
     TipoTransacao tipoTransacao = new TipoTransacao();
     tipoTransacao.Id = id;
     tipoTransacao.Sigla = sigla;
     tipoTransacao.Descricao = descricao;
     return tipoTransacao;
 }