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