Ejemplo n.º 1
0
 public IActionResult Delete(int id)
 {
     try
     {
         var entity = loteService.Find(id);
         if (entity == null)
         {
             return(NotFound());
         }
         loteService.Delete(entity);
         return(Ok());
     }
     catch (Exception)
     {
         throw;
     }
 }