Beispiel #1
0
 public IHttpActionResult SetPassLocation(PassRouteModel model)
 {
     try
     {
         int ff;
         int.TryParse(User.Identity.GetUserId(), out ff);
         var res = _routemanager.SetPassLocation(ff, model);
         return(Json(_responseProvider.GenerateRouteResponse(res, "SetPassLocation")));
     }
     catch (Exception e)
     {
         _logmanager.Log(Tag, "SetPassLocation", e.Message);
     }
     return(Json(_responseProvider.GenerateUnknownErrorResponse()));
 }
Beispiel #2
0
        public IHttpActionResult CancelBooking(PassRouteModel model)
        {
            var res = _routemanager.CancelBooking(int.Parse(User.Identity.GetUserId()), model.TripId);

            return(Json(res.IsSubmited));
        }