Пример #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            EmployeeWageInfo employeeWageInfo = db.EmployeeWageInfoes.Find(id);

            db.EmployeeWageInfoes.Remove(employeeWageInfo);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Пример #2
0
 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));
 }
Пример #3
0
        // 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));
        }