public async Task <HttpResponseMessage> Excluir(Guid request) { try { var response = _service.Excluir(request); return(await ResponseAsync(response, _service)); } catch (Exception e) { return(await ResponseExceptionAsync(e)); } }
public async Task <HttpResponseMessage> Excluir(Guid id) { try { var response = _serviceJogo.Excluir(id); return(await ResponseAsync(response, _serviceJogo)); } catch (Exception ex) { return(await ResponseExceptionAsync(ex)); } }