Ejemplo n.º 1
0
 public IActionResult Create([Bind] Pabellon1 pabellon1)
 {
     if (ModelState.IsValid)
     {
         objemployee.AddPabellon1(pabellon1);
         return(RedirectToAction("Index"));
     }
     return(View(employee));
 }
Ejemplo n.º 2
0
 public IActionResult Edit(int id, [Bind] Pabellon1 pabellon)
 {
     if (id != pabellon1.ID)
     {
         return(NotFound());
     }
     if (ModelState.IsValid)
     {
         objemployee.UpdatePabellon1(pabellon1);
         return(RedirectToAction("Index"));
     }
     return(View(pabellon1));
 }
Ejemplo n.º 3
0
        public IActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }
            Pabellon1 pabellon1 = objpabellon1.GetPabellon1Data(id);

            if (pabellon1 == null)
            {
                return(NotFound());
            }
            return(View(pabellon1));
        }