Example #1
0
 public bool Delete(int id)
 {
     try
     {
         LiteDBClass.DeleteObject(id, Objetos.Administradora);
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Example #2
0
 public bool Delete(int id)
 {
     try
     {
         LiteDBClass.DeleteObject(id, Objetos.Assunto);
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Example #3
0
 public ActionResult Delete(int id)
 {
     try
     {
         LiteDBClass.DeleteObject(id, Objetos.Usuario);
         return(View("Index"));
     }
     catch
     {
         return(View("Index"));
     }
 }