public ViewResult Blogs(Posts p) { PostsRepository.records.UserName = p.UserName; PostsRepository.records.Add(p); UserDB.AddPost(p); return(View("Blogs", PostsRepository.records)); }