コード例 #1
0
 public virtual void Delete(int id)
 {
     try
     {
         service.Excluir(id);
     }
     catch (Exception ex)
     {
         Erro _erro = new GerenciadorErroService().TrataErro(ex);
         throw new HttpResponseException(Request.CreateErrorResponse(HttpStatusCode.NotFound, _erro.Mensagem));
     }
 }
コード例 #2
0
 public void Excluir(int id)
 {
     _servico.Excluir(id);
 }