//index functionality
 public IActionResult Index()
 {
     p = m.listofpost();
     return(View(p));
 }