public ActionResult Edit(RegisterEntry entry) { _repository.UpdateEntry(entry); return RedirectToAction("viewData"); }