public ActionResult Edit([Bind(Include="DepartmentID,Name,GroupName,ModifiedDate")] Department department)
{
if (ModelState.IsValid)
{
db.Entry(department).State = EntityState.Modified;
db.SaveChanges();
return RedirectToAction("Index");
}
return View(department);
}