public async Task <ActionResult> Edit([Bind(Include = "Id, Name, Description")] University university) { if (ModelState.IsValid) { University universityToBeUpdated = _universityRepository.GetById(university.Id); universityToBeUpdated.Name = university.Name; universityToBeUpdated.Description = university.Description; _universityRepository.GetEntry(universityToBeUpdated).State = EntityState.Modified; await _universityRepository.Commit(); RedirectToAction("Details", new { id = university.Id }); } return(View(university)); }