protected void btnCreateMeeting_Click(object sender, EventArgs e)
        {
            _controller = new CreateMeetingController(this);
            List <int> userIds = new List <int>();

            string   title           = txtBoxMeetingTitle.Text.Trim();
            bool     avRequired      = chckavRequired.Checked;
            bool     phoneRequired   = chckphoneRequired.Checked;
            bool     videoRequired   = chckvideoRequired.Checked;
            DateTime windowStart     = Convert.ToDateTime(txtBoxStartDate.Text.Trim());
            DateTime windowEnd       = Convert.ToDateTime(txtBoxEndDate.Text.Trim());
            int      duration        = Convert.ToInt32(txtBoxDuration.Text.Trim());
            int      prefLocId       = Convert.ToInt32(ddlLocations.SelectedValue);
            string   PhoneBridge     = txtBoxPhone.Text.Trim();
            string   PhoneAccessCode = txtBoxPhoneAccess.Text.Trim();

            foreach (ListItem item in chkBoxListUsers.Items)
            {
                if (item.Selected == true)
                {
                    userIds.Add(Convert.ToInt32(item.Value));
                }
            }

            int priority = Convert.ToInt32(ddlPriority.SelectedValue);

            _controller.CreateMeeting(userIds, title, windowStart, windowEnd, duration
                                      , avRequired, phoneRequired, videoRequired, prefLocId, priority
                                      , Convert.ToInt32(Request.QueryString["UserId"])
                                      , PhoneBridge, PhoneAccessCode);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.QueryString.HasKeys())
                {
                    _controller = new CreateMeetingController(this);
                    List <IUser> users = _controller.GetAllUsers();
                    chkBoxListUsers.DataSource     = users;
                    chkBoxListUsers.DataTextField  = "UserName";
                    chkBoxListUsers.DataValueField = "UserId";
                    chkBoxListUsers.DataBind();

                    List <ILocationMaster> locations = _controller.GetAllLocations();
                    ddlLocations.DataSource     = locations;
                    ddlLocations.DataTextField  = "LocationName";
                    ddlLocations.DataValueField = "LocationId";
                    ddlLocations.DataBind();
                }
                else
                {
                    Response.Redirect("/LogIn.aspx");
                }
            }
        }