Ejemplo n.º 1
0
        public ActionResult Index()
        {
            efdataEntities db   = new efdataEntities();
            Repository     resp = new Repository(db);

            Console.Write(resp.checkConnexion("test", "test"));
            return(View());
        }
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            efdataEntities db   = new efdataEntities();
            Repository     _rpo = new Repository(db);

            if (_rpo.checkConnexion(name.Text, password.Password))
            {
                Window1 wnd = new Window1();
                wnd.Show();
                this.Close();
            }
            else
            {
                MessageBox.Show("Your Credential are incorrect");
            }
        }
    public Servicewcf()
    {
        efdataEntities db = new efdataEntities();

        this.repo = new Repository(db);
    }