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)); }
private void btnNew_Click(object sender, EventArgs e) { CustomerViewForm child = new CustomerViewForm(this); child.Show(); }