public ActionResult DeleteConfirmed(int id)
        {
            Employee_attribute employee_attribute = db.Employee_attribute.Find(id);

            db.Employee_attribute.Remove(employee_attribute);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Employee_attribute_ID,Particular,Employee,Salary,Payment,Remaining,Date,Shop_name")] Employee_attribute employee_attribute)
 {
     if (ModelState.IsValid)
     {
         db.Entry(employee_attribute).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.Date      = new SelectList(db.Date_Time, "Date_Time_ID", "Date_Time_ID", employee_attribute.Date);
     ViewBag.Employee  = new SelectList(db.Employee_Details, "Employee_ID", "Employee_Code", employee_attribute.Employee);
     ViewBag.Shop_name = new SelectList(db.Shop_Details, "Shop_ID", "Shop_name", employee_attribute.Shop_name);
     return(View(employee_attribute));
 }
        // GET: Employee_attribute/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Employee_attribute employee_attribute = db.Employee_attribute.Find(id);

            if (employee_attribute == null)
            {
                return(HttpNotFound());
            }
            return(View(employee_attribute));
        }
        // GET: Employee_attribute/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Employee_attribute employee_attribute = db.Employee_attribute.Find(id);

            if (employee_attribute == null)
            {
                return(HttpNotFound());
            }
            ViewBag.Date      = new SelectList(db.Date_Time, "Date_Time_ID", "Date_Time_ID", employee_attribute.Date);
            ViewBag.Employee  = new SelectList(db.Employee_Details, "Employee_ID", "Employee_Code", employee_attribute.Employee);
            ViewBag.Shop_name = new SelectList(db.Shop_Details, "Shop_ID", "Shop_name", employee_attribute.Shop_name);
            return(View(employee_attribute));
        }