public async Task SearchAndPopulate() { Busy = true; var bulkModelSearch = new BulkPickModelSearch() { SearchFromLocationCode = _searchFromLocationCode, SearchBarcode = _searchBarcode, SearchDocumentNo = _searchDocumentNo }; try { var result = ConnectionService.SearchBulkPick(bulkModelSearch, AppSession.UserId); if (!result.Status) { Busy = false; await _navigationService.DisplayAlert("Alert", result.Message, "Ok"); } else { Busy = false; var bulkTask = JsonConvert.DeserializeObject <GetNextTaskModel>(result.Data.ToString()); //var jObject = JObject.Parse(result.Data.ToString()); //TaskModel taskObject = jObject.ToObject<TaskModel>(); await _navigationService.PushAsync(new BulkPickPage(_navigationService, bulkTask)); } } catch (Exception ex) { Busy = false; await _navigationService.DisplayAlert("Server.", ex.Message, "Ok"); } }
public static Result SearchBulkPick(BulkPickModelSearch searchModel, int userId) { return(Connect(searchModel, MethodType.Post, String.Format("{0}bulkpick/search/{1}", Server, userId))); }