예제 #1
0
 public ActionResult Edit(Log_Bebe log_bebe)
 {
     if (ModelState.IsValid)
     {
         db.Entry(log_bebe).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(log_bebe);
 }
예제 #2
0
        public ActionResult Create(Log_Bebe log_bebe)
        {
            if (ModelState.IsValid)
            {
                db.Log_Bebes.Add(log_bebe);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(log_bebe);
        }
예제 #3
0
 void guardarlog(Bebe bebe, string accion)
 {
     Log_Bebe lb = new Log_Bebe
     {
         usuario = User.Identity.Name,
         fecha = DateTime.Now,
         idBebe = bebe.bebeID,
         accion = accion
     };
     db.Log_Bebes.Add(lb);
 }
예제 #4
0
 void guardarlog(Bebe bebe, string accion)
 {
     Log_Bebe lb = new Log_Bebe
     {
         usuario = "excelImport",
         fecha = DateTime.Now,
         idBebe = bebe.bebeID,
         accion = accion
     };
     db.Log_Bebes.Add(lb);
 }