public ActionResult DeleteConfirmed(int id)
        {
            transportadora transportadora = db.transportadora.Find(id);

            db.transportadora.Remove(transportadora);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,cnpj,razao,nome_fantasia,logradouro,cidade,uf,numero,cep,complemento,telefone,email,site")] transportadora transportadora)
 {
     if (ModelState.IsValid)
     {
         db.Entry(transportadora).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(transportadora));
 }
        // GET: transportadoras/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            transportadora transportadora = db.transportadora.Find(id);

            if (transportadora == null)
            {
                return(HttpNotFound());
            }
            return(View(transportadora));
        }