public ActionResult Edit(int id, Tipo collection) { try { // TODO: Add update logic here _tipoRepository.Actualizar(collection); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public void Actualizar(Tipo entity) { _tipoRepository.Actualizar(entity); }