public ActionResult DeleteConfirmed(int id)
        {
            muctemployee muctemployee = db.muctemployees.Find(id);

            db.muctemployees.Remove(muctemployee);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "muctempid,employee,designation")] muctemployee muctemployee)
 {
     if (ModelState.IsValid)
     {
         db.Entry(muctemployee).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(muctemployee));
 }
        public ActionResult Create([Bind(Include = "muctempid,employee,designation")] muctemployee muctemployee)
        {
            if (ModelState.IsValid)
            {
                db.muctemployees.Add(muctemployee);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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