public string Display(EntityPatientAdd entityobj) { int pid = entityobj.PatientID; string Pname = entityobj.PatientName; return(pid + " " + Pname); }
protected void Button1_Click(object sender, EventArgs e) { EntityPatientAdd entityobj = new EntityPatientAdd(); entityobj.PatientID = Convert.ToInt32(txtpid.Text); entityobj.PatientName = txtpname.Text; BussinessPatientAdd busobj = new BussinessPatientAdd(); string message = busobj.Display(entityobj); Response.Write("PatientDetails" + message); }