Ejemplo n.º 1
0
 public ActionResult DeleteConfirmed(int id)
 {
     TIPO_BITACORA tIPO_BITACORA = db.TIPO_BITACORA.Find(id);
     db.TIPO_BITACORA.Remove(tIPO_BITACORA);
     db.SaveChanges();
     return RedirectToAction("Index");
 }
Ejemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "ID_TIPO_BITACORA,NOMBRE")] TIPO_BITACORA tIPO_BITACORA)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tIPO_BITACORA).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(tIPO_BITACORA);
 }
Ejemplo n.º 3
0
        public ActionResult Create([Bind(Include = "ID_TIPO_BITACORA,NOMBRE")] TIPO_BITACORA tIPO_BITACORA)
        {
            if (ModelState.IsValid)
            {
                db.TIPO_BITACORA.Add(tIPO_BITACORA);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(tIPO_BITACORA);
        }
Ejemplo n.º 4
0
 // GET: Tipo_Bitacora/Delete/5
 public ActionResult Delete(int? id)
 {
     if (id == null)
     {
         return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
     }
     TIPO_BITACORA tIPO_BITACORA = db.TIPO_BITACORA.Find(id);
     if (tIPO_BITACORA == null)
     {
         return HttpNotFound();
     }
     return View(tIPO_BITACORA);
 }
Ejemplo n.º 5
0
 public ApiResultModel <TIPO_BITACORA> Update([FromBody] TIPO_BITACORA aux) => GetApiResultModel(() => _binacleTypeService.Update(aux));
Ejemplo n.º 6
0
 public ApiResultModel <bool> Delete([FromBody] TIPO_BITACORA aux) => GetApiResultModel(() => _binacleTypeService.Delete(aux));