예제 #1
0
 public IActionResult CurrentJourney()
 {
     try
     {
         var driverId = Guid.Parse(User.Identity.Name);
         var result   = _journeyService.GetDriverCurrentJourney(driverId);
         return(Ok(result));
     }
     catch (Exception ex)
     {
         ex.LogException();
         return(Ok(new ServiceResponse {
             Status = DAL.Common.Enums.ResponseStatus.ServerError
         }));
     }
 }