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