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