I am building a simple cms in asp.net mvc5 , so i finished the News Part , Now i am working with PageConfig Controller , and this is the PageConfig Class, SO in the admin panel or by admin role HOW CAN i add a page dynamically with this page template , can you provide me any source code / tutorial / help how can i achieve that ?!
namespace
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
[Bind(Exclude = "Id")]
public partial class PageConfig
{
[ScaffoldColumn(false)]
public int Id { get; set; }
public string PageId { get; set; }
public string Control { get; set; }
public string Content { get; set; }
public string Placeholder { get; set; }
public Nullable<int> NrOfRecords { get; set; }
}
}
I would be very thankful for any help.
Regards.
What I have tried:
ASP.NET MVC / how to add page dynamically
i described the problem above