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"); } }
public SalesMansData Map(SalesMansModel salesMansData) { return(_Mapper.Map <SalesMansData>(salesMansData)); }