Example #1
0
    protected void btnSubmit_OnClick(object sender, EventArgs e)
    {
        RequiresAuthorization(Authorizations.UpdateGlobal);
        var bootTemplate = new Models.BootTemplate
        {
            Id = BootTemplate.Id,
            Name = txtName.Text,
            Description = txtDescription.Text,
            Contents = txtContents.Text
        };

        var result = BLL.BootTemplate.UpdateBootTemplate(bootTemplate);
        EndUserMessage = !result.IsValid ? result.Message : "Successfully Updated Boot Menu Template";
       
    }
Example #2
0
    protected void btnSubmit_OnClick(object sender, EventArgs e)
    {
        RequiresAuthorization(Authorizations.UpdateGlobal);
        var bootTemplate = new Models.BootTemplate
        {
            Id          = BootTemplate.Id,
            Name        = txtName.Text,
            Description = txtDescription.Text,
            Contents    = txtContents.Text
        };

        var result = BLL.BootTemplate.UpdateBootTemplate(bootTemplate);

        EndUserMessage = !result.IsValid ? result.Message : "Successfully Updated Boot Menu Template";
    }
Example #3
0
    protected void btnSubmit_OnClick(object sender, EventArgs e)
    {
        RequiresAuthorization(Authorizations.CreateGlobal);
        var bootTemplate = new Models.BootTemplate
        {
            Name = txtName.Text,
            Description = txtDescription.Text,
            Contents = txtContents.Text
        };

        var result = BLL.BootTemplate.AddBootTemplate(bootTemplate);
        if (!result.IsValid)
            EndUserMessage = result.Message;
        else
        {
            EndUserMessage = "Successfully Added Boot Menu Template";
            Response.Redirect("~/views/global/boottemplates/edit.aspx?cat=sub1&templateid=" + bootTemplate.Id);
        }
    }
Example #4
0
    protected void btnSubmit_OnClick(object sender, EventArgs e)
    {
        RequiresAuthorization(Authorizations.CreateGlobal);
        var bootTemplate = new Models.BootTemplate
        {
            Name        = txtName.Text,
            Description = txtDescription.Text,
            Contents    = txtContents.Text
        };

        var result = BLL.BootTemplate.AddBootTemplate(bootTemplate);

        if (!result.IsValid)
        {
            EndUserMessage = result.Message;
        }
        else
        {
            EndUserMessage = "Successfully Added Boot Menu Template";
            Response.Redirect("~/views/global/boottemplates/edit.aspx?cat=sub1&templateid=" + bootTemplate.Id);
        }
    }