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