public ActionResult DeleteConfirmed(byte id)
        {
            PostEmploees postemploees = db.PostEmploees.Find(id);

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

            return(View(postemploees));
        }
        // GET: /PostEmpl/Delete/5
        public ActionResult Delete(byte?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            PostEmploees postemploees = db.PostEmploees.Find(id);

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