public ActionResult ShowProfile(int?id) { var shares = shareManager.ListQueryable().Include("Owner").Where( x => x.Owner.Id == id).OrderByDescending( x => x.CreatedDate); return(View(shares.ToList())); }
public ActionResult Index() { //Test a = new Test(); var shares = shareManager.ListQueryable().Include("Owner").OrderByDescending(x => x.CreatedDate).ToList(); return(View(shares)); }
public ActionResult Index() { var shares = shareManager.ListQueryable().Include("Owner").Where( x => x.Owner.Id == CurrentSession.footballer.Id).OrderByDescending( x => x.CreatedDate); return(View(shares.ToList())); }
public ActionResult ShowShareComment(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Share share = shareManager.ListQueryable().Include ("Comments").FirstOrDefault(x => x.Id == id); if (share == null) { HttpNotFound(); } return(PartialView("_PartialComments", share.Comments)); }
// GET: Home //Ana Sayfa işlemleri public ActionResult ShowShare() { return(View("ShowShare", shareManager.ListQueryable().OrderByDescending(x => x.CreatedDate).ToList())); }