예제 #1
0
 public async Task <HttpResponseMessage> Deletar(Guid Id)
 {
     try
     {
         var response = _serviceJogo.ExcluirJogo(Id);
         return(await ResponseAsync(response, _serviceJogo));
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #2
0
        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));
            }
        }