public void loadQuestion(int loadCount)
{
using (var model = new modelContainer())
{
pnlWithoutAnswer.InnerHtml = GenerateQuestion(model.Questions.Include("Tags").Include("Answers").ToList().Where(x => x.Answers.Count == 0).OrderByDescending(X=>X.FromDate).Take(loadCount).ToList()).ToString();
pnlNewQuestions.InnerHtml = GenerateQuestion(model.Questions.Include("Tags").Include("Answers").ToList().OrderByDescending(x => x.FromDate).Take(loadCount).ToList()).ToString();
pnlMostViewer.InnerHtml = GenerateQuestion(model.Questions.Include("Tags").Include("Answers").ToList().OrderByDescending(x => x.Viewer).Take(loadCount).ToList()).ToString();
}
}
public void loadQuestion(int loadCount) { using (var model = new modelContainer()) { pnlWithoutAnswer.InnerHtml = GenerateQuestion(model.Questions.Include("Tags").Include("Answers").ToList().Where(x => x.Answers.Count == 0).OrderByDescending(X=>X.FromDate).Take(loadCount).ToList()).ToString(); pnlNewQuestions.InnerHtml = GenerateQuestion(model.Questions.Include("Tags").Include("Answers").ToList().OrderByDescending(x => x.FromDate).Take(loadCount).ToList()).ToString(); pnlMostViewer.InnerHtml = GenerateQuestion(model.Questions.Include("Tags").Include("Answers").ToList().OrderByDescending(x => x.Viewer).Take(loadCount).ToList()).ToString(); } }
هیچ کاربری تا کنون از این پست تشکر نکرده است
با ما تماس بگیرید تا در این مسیر همراهتان باشیم :)