public ActionResult DeleteConfirmed(int id)
        {
            EmployeePhoneNumber employeePhoneNumber = db.EmployeePhoneNumber.Find(id);

            db.EmployeePhoneNumber.Remove(employeePhoneNumber);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,PhoneNumer,AreaCode")] EmployeePhoneNumber employeePhoneNumber)
 {
     if (ModelState.IsValid)
     {
         db.Entry(employeePhoneNumber).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(employeePhoneNumber));
 }
        public ActionResult Create([Bind(Include = "Id,PhoneNumer,AreaCode")] EmployeePhoneNumber employeePhoneNumber)
        {
            if (ModelState.IsValid)
            {
                db.EmployeePhoneNumber.Add(employeePhoneNumber);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(employeePhoneNumber));
        }
        // GET: EmployeePhoneNumbers/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            EmployeePhoneNumber employeePhoneNumber = db.EmployeePhoneNumber.Find(id);

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