예제 #1
0
        public ActionResult CustomerForm(string id)
        {
            var aspnetuserindb = db.AspNetUsers.SingleOrDefault(temp => temp.Id == id);

            Customer anu = new Customer()
            {
                Id = id
            };

            CustomerViewForm cvf = new CustomerViewForm()
            {
                Customer = anu
            };


            return(View(cvf));
        }
예제 #2
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            CustomerViewForm child = new CustomerViewForm(this);

            child.Show();
        }