public void GetDangerousVehicleDetails(string plateNumber) { var callTask = client.GetDangerousVehicleDetailsByPlateNumberAsync(plateNumber, Utility.GetLang()); var obs = callTask.ToObservable(); obs.Subscribe((x) => Add_DangerousVehicleDetails(x)); }
public void GetDangerousVehicleDetails(string plateNumber) { //client.SaveSupervisorNotificationAsync(new SupervisorNotificationDTO() { DangerousViolatorDetails = new SupervisorNotificationReportDangerousDTO() { } }); var callTask = client.GetDangerousVehicleDetailsByPlateNumberAsync(plateNumber, Utility.GetLang()); var obs = callTask.ToObservable(); obs.Subscribe((x) => Add_DangerousVehicleDetails(x)); }
public void GetDangerousVehicleDetails(string plateNumber) { try { var callTask = client.GetDangerousVehicleDetailsByPlateNumberAsync(plateNumber, Utility.GetLang()).ToObservable(); callTask.Subscribe(x => Add_DangerousViolator(x)); } catch (Exception ex) { } }