internal static void AddCustomer() { var customerMobileNumber = UserInterfaceSetupFunctions.GetMobileNumber(); var customerName = UserInterfaceSetupFunctions.GetCustomerName(); var customerEmail = UserInterfaceSetupFunctions.GetCustomerEmail(); var employeeId = UserInterfaceSetupFunctions.GetEmployeeId(); var customerIdentity = UserInterfaceSetupFunctions.GetCustomerIdentity(); int insertCount = DBInterface.AddCutomer(customerMobileNumber, customerName, customerEmail, employeeId, customerIdentity); if (insertCount > 0) { Console.WriteLine("Inserted Customer Successfully"); } }
internal static SqlDataReader DisplayBonusForEmployee() { var employeeId = UserInterfaceSetupFunctions.GetEmployeeId(); return(DBInterface.GetBonusForEmployee(employeeId)); }
internal static SqlDataReader DisplayEmployeesCustomers() { var employeeId = UserInterfaceSetupFunctions.GetEmployeeId(); return(DBInterface.GetCutomersForEmployee(employeeId)); }
internal static SqlDataReader DisplayEmployeeByID() { var employeeId = UserInterfaceSetupFunctions.GetEmployeeId(); return(DBInterface.GetEmployeeById(employeeId)); }