File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ public Collection<RequestEntity> GetRequests(int id)
35
35
r . Cantidad = reader . GetInt32 ( 2 ) ;
36
36
r . Total = reader . GetDecimal ( 3 ) ;
37
37
r . FechaPedido = reader . GetDateTime ( 4 ) ;
38
+ r . Unit_Price = reader . GetDecimal ( 5 ) ;
38
39
response . Add ( r ) ;
39
40
}
40
41
@@ -88,7 +89,7 @@ public async Task<TransaccionEntidad> processRequest(RequestDone pedido)
88
89
for ( int i = 0 ; i < pedido . LineaPedido . Count ; i ++ )
89
90
{
90
91
91
- SqlCommand cmd2 = new SqlCommand ( "dbo.postRequestLine" , conn ) ;
92
+ SqlCommand cmd2 = new SqlCommand ( "dbo.postRequestLine" , conn ) ;
92
93
cmd2 . CommandType = System . Data . CommandType . StoredProcedure ;
93
94
94
95
cmd2 . Parameters . Add ( "@idRequest" , System . Data . SqlDbType . Int ) . Value = lastIndex ;
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ public class RequestEntity
7
7
public int Cantidad { get ; set ; }
8
8
public Decimal Total { get ; set ; }
9
9
public DateTime FechaPedido { get ; set ; }
10
+ public Decimal Unit_Price { get ; set ; }
10
11
11
12
public RequestEntity ( )
12
13
{
You can’t perform that action at this time.
0 commit comments