public IActionResult Create([Bind] Pabellon1 pabellon1) { if (ModelState.IsValid) { objemployee.AddPabellon1(pabellon1); return(RedirectToAction("Index")); } return(View(employee)); }
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)); }
public IActionResult Delete(int?id) { if (id == null) { return(NotFound()); } Pabellon1 pabellon1 = objpabellon1.GetPabellon1Data(id); if (pabellon1 == null) { return(NotFound()); } return(View(pabellon1)); }