public void Delete([FromUri] int id)
 {
     if (id != 0)
     {
         using (var dbCliente = new ClienteRep())
         {
             dbCliente.Delete(id);
         }
     }
 }
示例#2
0
        public async Task <bool> Delete(int id)
        {
            bool result = _repositorio.Delete(id);

            return(result);
        }