Exemple #1
0
 public ActionResult Delete(int id, Membro collection)
 {
     try
     {
         // TODO: Add delete logic here
         _membroRepository.Remover(collection);
         return(RedirectToAction(nameof(Index)));
     }
     catch
     {
         return(View());
     }
 }
Exemple #2
0
 public void Remover(Membro entity)
 {
     _membroRepository.Remover(entity);
 }