Ejemplo n.º 1
0
        public ActionResult Delete([FromServices] IClienteServices clienteServices, int id)
        {
            try
            {
                clienteServices.DeleteClienteById(id);

                return(Ok());
            }
            catch (Exception ex)
            {
                _logger.LogError(ex.Message, ex);
                return(Problem(ex.Message));
            }
        }