Skip to content

Navigation Item Page Not Found Error #5651

Answered by bigjezza
420skywalker420 asked this question in Help
Discussion options

You must be logged in to vote

you need to put a controller in the folder with your CSHTML
something like this

namespace YourProject.PrivacyPolicy.Pages
{
    using Serenity;
    using Serenity.Web;
    using Microsoft.AspNetCore.Mvc;

    [PageAuthorize("Administration:General")]
    public class PrivacyController : Controller
    {
        [Route("~/PrivacyPolicy")]
        public ActionResult Index()
        {
            return View("~/Modules/PrivacyPolicy/PrivacyIndex.cshtml");
        }
    }
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@420skywalker420
Comment options

Answer selected by 420skywalker420
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants