Fixing an issue with output parameters that are of type IntPtr
[castle.git] / Experiments / Castle.Igloo / Igloo.Clinic.Web / Views / Index.aspx.cs
blob36edf21b2a75ff5faa31e3324e538cd80ecd06c0
1 using System;
2 using System.Collections.Generic;
3 using Castle.Igloo.Attributes;
4 using Igloo.Clinic.Domain;
5 using Igloo.Clinic.Application;
6 using Castle.Igloo.UI.Web;
8 namespace Igloo.Clinic.Web.Views
10 public partial class Index : Page
12 private PatientController _patientController = null;
13 private IList<Patient> _patients = null;
15 [Inject]
16 public IList<Patient> Patients
18 set { _patients = value; }
21 public PatientController PatientController
23 set { _patientController = value; }
26 protected void Page_Load(object sender, EventArgs e)
28 if (!IsPostBack)
30 GridViewBlog.DataSource = _patientController.RetrievePatients();
31 GridViewBlog.DataBind();
33 else
35 GridViewBlog.DataSource = _patients;
36 GridViewBlog.DataBind();
40 protected void Button1_Click(object sender, EventArgs e)
42 _patientController.Checkout();