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

            Db db = new Db(DbServices.ConnectionString);
            SalaryWorkPlace salaryWorkPlace = SalaryWorkPlaceServices.Get(id.Value, db);

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

            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            SalaryWorkPlace salaryWorkPlace = SalaryWorkPlaceServices.Get(id.Value, db);

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

            ViewBag.MainWorkPlaceList = new SelectList(MainWorkPlaceServices.List(db), "Id", "Name", salaryWorkPlace.MainWorkPlace);
            return(View(salaryWorkPlace));
        }