示例#1
0
        public ActionResult DeleteConfirmed(int id)
        {
            vw_EmployeeSalaryHistory vw_EmployeeSalaryHistory = db.vw_EmployeeSalaryHistory.Find(id);

            db.vw_EmployeeSalaryHistory.Remove(vw_EmployeeSalaryHistory);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
示例#2
0
 public ActionResult Edit([Bind(Include = "empID,Company,StartDate,EndDate,PositionDescription,MonthlySalary,SalaryGradeDescription,StepIncrement,EmpStatusDescription,IsGovService,workID")] vw_EmployeeSalaryHistory vw_EmployeeSalaryHistory)
 {
     if (ModelState.IsValid)
     {
         db.Entry(vw_EmployeeSalaryHistory).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(vw_EmployeeSalaryHistory));
 }
示例#3
0
        // GET: EmployeeSalaryHistory/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            vw_EmployeeSalaryHistory vw_EmployeeSalaryHistory = db.vw_EmployeeSalaryHistory.Find(id);

            if (vw_EmployeeSalaryHistory == null)
            {
                return(HttpNotFound());
            }
            return(View(vw_EmployeeSalaryHistory));
        }