Example #1
0
        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;
            }
        }
Example #2
0
 public void DeleteCategoria(Guid id)
 {
     _categoriaService.Eliminar(id);
 }