public async Task <HttpResponseMessage> Post([FromBody] ProdutoClienteSaida produtoClienteSaidas)
        {
            try
            {
                await _produtoClienteSaidaAppService.Add(produtoClienteSaidas);

                NotificationHub.SendMessageNew(string.Format("Pedido efetuado com Sucesso {0}", Guid.NewGuid()));
                return(await Task.Factory.StartNew(() => new HttpResponseMessage { StatusCode = HttpStatusCode.OK }));
            }
            catch (Exception ex)
            {
                return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message));
            }
        }
Exemplo n.º 2
0
 public Task RemovePhysical(ProdutoClienteSaida obj)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 3
0
 public Task RemoveLogic(int id, ProdutoClienteSaida obj)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 4
0
 public Task Update(ProdutoClienteSaida obj)
 {
     throw new System.NotImplementedException();
 }