예제 #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            SalesMansRepository salesMansRepository = new SalesMansRepository();

            salesMansModel = salesMansRepository.SalesManLogin(txtFirstName.Text, txtLastName.Text, txtPassword.Password);
            if (salesMansModel != null)
            {
                MenuWindow Menu = new MenuWindow(salesMansModel);
                Menu.Show();
                this.Close();
            }
            else
            {
                MessageBox.Show("Incorrect password or login");
            }
        }
예제 #2
0
 public SalesMansData Map(SalesMansModel salesMansData)
 {
     return(_Mapper.Map <SalesMansData>(salesMansData));
 }