public async Task <LinkedList <Models.UserModel.PostModel> > GetRecentPosts()
        {
            LinkedList <Models.UserModel.PostModel> list = new LinkedList <Models.UserModel.PostModel>();
            List <Post> posts = await database.Posts.OrderByDescending(i => i.Id).Where(i => !i.Deleted).Take(50).ToListAsync();

            foreach (Post p in posts)
            {
                Models.UserModel.PostModel model = new Models.UserModel.PostModel();
                model.Id    = p.Id;
                model.Title = p.Title;
                model.URL   = p.PostURL;
                list.AddLast(model);
            }
            return(list);
        }
        public async Task <Models.UserModel> GetUserModel(string name)
        {
            Account account = await database.Accounts.Where(u => u.Username == name).Include(u => u.Posts).FirstOrDefaultAsync();

            if (account != null)
            {
                Models.UserModel model = new Models.UserModel();
                model.UserID   = account.Id;
                model.UserName = account.Username;
                foreach (Post p in account.Posts)
                {
                    if (!p.Deleted)
                    {
                        Models.UserModel.PostModel pm = new Models.UserModel.PostModel();
                        pm.Id    = p.Id;
                        pm.Title = p.Title;
                        pm.URL   = p.PostURL;
                        model.Posts.AddFirst(pm);
                    }
                }
                return(model);
            }
            return(null);
        }