Exemplo n.º 1
0
        public ActionResult <Cliente> Delete(int id)
        {
            var customer = _Clientes.Eliminar(id);

            if (customer == null)
            {
                return(StatusCode(404, "Did not find Customer with ID " + id));
            }

            return(Ok($"Customer with Id: {id} is Deleted"));
        }