Exemple #1
0
        public async Task <ActionResult <Cliente> > DeleteCliente(int id)
        {
            var cliente = new Cliente();

            cliente.Id = id;
            using (var model = new ClientesModel())
            {
                model.Delete(cliente);
                return(NoContent());
            }
        }