public async Task <IActionResult> Eliminar(string Id) { try { Guid id = Guid.Parse(Id); var result = await _service.Eliminar(id); return(Ok(result)); } catch (Exception e) { return(BadRequest(e.Message)); throw e; } }
public void DeleteCategoria(Guid id) { _categoriaService.Eliminar(id); }