public ActionResult Delete(int id, Employee employee) { try { // TODO: Add delete logic here return RedirectToAction("Index"); } catch { return View(); } }
public ActionResult Create(Employee employee) { try { // TODO: Add insert logic here return RedirectToAction("Index"); } catch { return View(); } }
public void update(Employee employee) { SessionFactory.GetCurrentSession().Update(employee); SessionFactory.GetCurrentSession().Flush(); }
public void save(Employee employee) { SessionFactory.GetCurrentSession().Save(employee); }
public void delete(Employee employee) { SessionFactory.GetCurrentSession().Delete(employee); SessionFactory.GetCurrentSession().Flush(); }