public ActionResult Edit([Bind(Include = "paiting_id,paiting_url,artist_id,paiting_description")] Paitings paitings)
 {
     if (ModelState.IsValid)
     {
         db.Entry(paitings).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(paitings));
 }
 public ActionResult Edit([Bind(Include = "Id,Name")] Division division)
 {
     if (ModelState.IsValid)
     {
         db.Entry(division).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(division));
 }
 public ActionResult Edit([Bind(Include = "id,price,model_name,product_name,size,counting_unit")] ProductsDB productsDB)
 {
     if (ModelState.IsValid)
     {
         db.Entry(productsDB).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(productsDB));
 }
 public ActionResult Edit([Bind(Include = "Id,FirstName,LastName,BirthDate,Department_Id,Salary")] Employee employee)
 {
     if (ModelState.IsValid)
     {
         db.Entry(employee).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.Department_Id = new SelectList(db.Departments, "Id", "Name", employee.Department_Id);
     return(View(employee));
 }
 public ActionResult Edit([Bind(Include = "Id,Name,CreatedOn,Division_Id")] Department department)
 {
     if (ModelState.IsValid)
     {
         db.Entry(department).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.Division_Id = new SelectList(db.Divisions, "Id", "Name", department.Division_Id);
     return(View(department));
 }