コード例 #1
0
        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");
            }
        }
コード例 #2
0
        internal static SqlDataReader DisplayBonusForEmployee()
        {
            var employeeId = UserInterfaceSetupFunctions.GetEmployeeId();

            return(DBInterface.GetBonusForEmployee(employeeId));
        }
コード例 #3
0
        internal static SqlDataReader DisplayEmployeesCustomers()
        {
            var employeeId = UserInterfaceSetupFunctions.GetEmployeeId();

            return(DBInterface.GetCutomersForEmployee(employeeId));
        }
コード例 #4
0
        internal static SqlDataReader DisplayEmployeeByID()
        {
            var employeeId = UserInterfaceSetupFunctions.GetEmployeeId();

            return(DBInterface.GetEmployeeById(employeeId));
        }