示例#1
0
 // DELETE: api/Ride/5
 public bool Delete(string id)
 {
     return(RideDataProvider.DeleteRide(id));
 }
示例#2
0
 // PUT: api/Ride/5
 public bool Put(string id, [FromBody] UpdateRideDTO value)
 {
     return(RideDataProvider.UpdateRide(id, value));
 }
示例#3
0
 public SearchResultsDTO FindPath([FromBody] SearchDTO value)
 {
     return(RideDataProvider.FindPath(value));
 }
示例#4
0
 // POST: api/Ride
 public ReadRideDTO Post([FromBody] CreateRideDTO value)
 {
     return(RideDataProvider.InsertRide(value));
 }
示例#5
0
 public IEnumerable <ReadRideDTO> GetCarrierByUser(string carrierId)
 {
     return(RideDataProvider.GetRidesByCarrier(carrierId));
 }
示例#6
0
 // GET: api/Ride/5
 public ReadRideDTO Get(string id)
 {
     return(RideDataProvider.GetRide(id));
 }