// GET: EmployeeSeniority/Delete/5
        public ActionResult Delete(Nullable <int> id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            Db db = new Db(DbServices.ConnectionString);
            EmployeeSeniority employeeSeniority = EmployeeSeniorityServices.Get(id.Value, db);

            if (employeeSeniority == null)
            {
                return(HttpNotFound());
            }
            return(View(employeeSeniority));
        }
        // GET: EmployeeSeniority/Edit/5
        public ActionResult Edit(Nullable <int> employee)
        {
            Db db = new Db(DbServices.ConnectionString);

            if (employee == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            EmployeeSeniority employeeSeniority = EmployeeSeniorityServices.Get(employee.Value, db);

            if (employeeSeniority == null)
            {
                return(HttpNotFound());
            }

            ViewBag.EmployeeList = new SelectList(EmployeeServices.List(db), "Id", "FirstName", employeeSeniority.Employee);
            return(View(employeeSeniority));
        }