public IHttpActionResult UpdateCurrentDriverLocation() { try { var updateDriverCurrentLocation = new UpdateDriverCurrentLocation { DriverID = HeaderValueByKey("DRIVERID"), AUTH_TOKEN = HeaderValueByKey("AUTH_TOKEN"), CurrentLatitude = Convert.ToDecimal(HeaderValueByKey("LATITUDE")), CurrentLongitude = Convert.ToDecimal(HeaderValueByKey("LONGITUDE")), IsLogIn = true, IsOnDuty = true }; var result = new DriverActivityBO().UpdateCurrentDriverLocation(updateDriverCurrentLocation); if (result) { return(Ok(new { Status = UTILITY.SUCCESSMESSAGE })); } else { return(Ok(new { Status = UTILITY.FAILEDMESSAGE })); } } catch (Exception ex) { return(InternalServerError(ex)); } }
public bool UpdateCurrentDriverLocation(UpdateDriverCurrentLocation updateDriverCurrentLocation) { return(driveractivityDAL.UpdateCurrentDriverLocation(updateDriverCurrentLocation)); }