Exemple #1
0
 public HttpResponseMessage PostAvaliacaoPedido(int id, int nota, string observacao)
 {
     try
     {
         repositorio.AvaliarPedido(id, nota, observacao);
         return(Request.CreateResponse(HttpStatusCode.Created));
     }
     catch (Exception ex)
     {
         return(Request.CreateResponse(HttpStatusCode.BadRequest, ex.Message));
     }
 }