public void ParkItems(string tableNo, ParkTableInput pti) { RunMethod(() => { if (items.Count != 0) { _parkService.ParkItems(items, AppuserData.Id, Convert.ToInt32(tableNo)); items.Clear(); orderCount = 0; PopulateParkedTable(); ShowPopup(new PopupBox(false, "Sucessfully parked items.")); } pti.Close(); }, "Failed to park item"); }