public IActionResult OnGet(string urlname)
 {
     if (string.IsNullOrEmpty(HttpContext.Session.GetString("username")) &&
         HttpContext.Session.GetString("username") != urlname)
     {
         return(RedirectToPage("/Index"));
     }
     UserName    = urlname;
     getuser     = userdata.GetByUserName(urlname);
     userRecords = vidTaken.GetRecordsByUsername(urlname);
     getallblogs = blogData.GetBlogByUsername(UserName);
     return(Page());
 }
 public void OnGet(string username)
 {
     allblogs = blogData.GetBlogByUsername(username);
 }