private static void UpdateSupplier() { try { int updateSupplierID; Console.WriteLine("Enter SupplierID to Update Details:"); updateSupplierID = Convert.ToInt32(Console.ReadLine()); Supplier updatedSupplier = SupplierBL.SearchSupplierBL(updateSupplierID); if (updatedSupplier != null) { Console.WriteLine("Update Supplier Name :"); updatedSupplier.SupplierName = Console.ReadLine(); Console.WriteLine("Update MobileNumber :"); updatedSupplier.SupplierMobile = Console.ReadLine(); bool supplierUpdated = SupplierBL.UpdateGuestBL(updatedSupplier); if (supplierUpdated) { Console.WriteLine("Supplier Details Updated"); } else { Console.WriteLine("Supplier Details not Updated "); } } else { Console.WriteLine("No Supplier Details Available"); } } catch (Inventory ex) { Console.WriteLine(ex.Message); } }