partial void DeleteHelpDesk_Role(HelpDesk_Role instance);
 partial void InsertHelpDesk_Role(HelpDesk_Role instance);
 partial void UpdateHelpDesk_Role(HelpDesk_Role instance);
        protected void btnInsertRole_Click(object sender, EventArgs e)
        {
            HelpDeskDALDataContext objHelpDeskDALDataContext = new HelpDeskDALDataContext();

            // See if Role already exists
            HelpDesk_Role colHelpDesk_Roles = (from HelpDesk_Roles in objHelpDeskDALDataContext.HelpDesk_Roles
                                                       where HelpDesk_Roles.PortalID == PortalId
                                                       where HelpDesk_Roles.RoleID == Convert.ToInt32(ddlRole.SelectedValue)
                                                       select HelpDesk_Roles).FirstOrDefault();
            if (colHelpDesk_Roles != null)
            {
                RoleController objRoleController = new RoleController();
                lblRoleError.Text = String.Format(Localization.GetString("RoleAlreadyAdded.Text", LocalResourceFile), objRoleController.GetRole(Convert.ToInt32(ddlRole.SelectedValue), PortalId).RoleName);
            }
            else
            {
                HelpDesk_Role objHelpDesk_Role = new HelpDesk_Role();
                objHelpDesk_Role.PortalID = PortalId;
                objHelpDesk_Role.RoleID = Convert.ToInt32(ddlRole.SelectedValue);

                objHelpDeskDALDataContext.HelpDesk_Roles.InsertOnSubmit(objHelpDesk_Role);
                objHelpDeskDALDataContext.SubmitChanges();

                lvRoles.DataBind();
            }
        }