public ActionResult DeleteConfirmed(int id) { EmployeeWageInfo employeeWageInfo = db.EmployeeWageInfoes.Find(id); db.EmployeeWageInfoes.Remove(employeeWageInfo); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "EmployeeWageInfoID,EmployeeID,LastIncreaseDate,LastIncreaseAmount,CurrentWage,WageType,DirectDeposit,ModifiedBy,ModifiedDate,CreatedBy,CreatedDate")] EmployeeWageInfo employeeWageInfo) { if (ModelState.IsValid) { db.Entry(employeeWageInfo).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(employeeWageInfo)); }
// GET: EmployeeWageInfoes/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } EmployeeWageInfo employeeWageInfo = db.EmployeeWageInfoes.Find(id); if (employeeWageInfo == null) { return(HttpNotFound()); } return(View(employeeWageInfo)); }