public ActionResult Edit(TipoExtorsion tipoextorsion)
 {
     if (ModelState.IsValid)
     {
         tipoextorsion.FechaAlta = DateTime.Now;
         db.Entry(tipoextorsion).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(tipoextorsion);
 }
        public ActionResult Create(TipoExtorsion tipoextorsion)
        {
            if (ModelState.IsValid)
            {
                tipoextorsion.FechaAlta = DateTime.Now;
                tipoextorsion.UsuarioAlta = Convert.ToInt32(Session["userNameId"]);
                db.TiposExtorsion.Add(tipoextorsion);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(tipoextorsion);
        }