File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 8888 <!-- Code Block -->
8989 <div class =" overflow-x-auto" >
9090 <!-- Added !bg-transparent to pre/code to prevent double background colors -->
91- <pre class =" !bg-transparent text-sm leading-6 text-slate-300 font-mono" ><span class =" text-slate-500" >// Create Queyrable APIs from just Request DTOs</span >
91+ <pre class =" !bg-transparent text-sm leading-6 text-slate-300 font-mono" ><span class =" text-slate-500" >// Create Queryable APIs from just Request DTOs</span >
9292<code ><span class =" text-yellow-300" >[Route(</span ><span class =" text-green-300" >"/bookings"</span ><span class =" text-yellow-300" >)]</span >
9393<span class =" text-purple-400" >public class</span > <span class =" text-yellow-300" >SearchBookings</span > : <span class =" text-blue-400" >QueryDb</span >< ; <span class =" text-green-400" >Booking</span >> ;
9494{
9595 <span class =" text-purple-400" >public </span > <span class =" text-blue-400" >string </span >? Name { <span class =" text-purple-400" >get </span >; <span class =" text-purple-400" >set </span >; }
9696
97- <span class =" text-purple-400" >public </span > <span class =" text-blue-400" >int </span >? AboveCost { <span class =" text-purple-400" >get </span >; <span class =" text-purple-400" >set </span >; }
97+ <span class =" text-purple-400" >public </span > <span class =" text-blue-400" >int </span >? MinCost { <span class =" text-purple-400" >get </span >; <span class =" text-purple-400" >set </span >; }
9898
9999 <span class =" text-purple-400" >public </span > <span class =" text-blue-400" >DateTime </span >? FromDate { <span class =" text-purple-400" >get </span >; <span class =" text-purple-400" >set </span >; }
100100}
101101
102102<span class =" text-slate-500" >// Immediately available from:
103- // GET /bookings?Name=John&AboveCost =50</span ></code ></pre >
103+ // GET /bookings?Name=John&MinCost =50</span ></code ></pre >
104104 </div >
105105 </div >
106106
You can’t perform that action at this time.
0 commit comments