Пример #1
0
        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()));
        }
Пример #2
0
        public ActionResult Index()
        {
            //Test a = new Test();
            var shares = shareManager.ListQueryable().Include("Owner").OrderByDescending(x => x.CreatedDate).ToList();

            return(View(shares));
        }
Пример #3
0
        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()));
        }
Пример #4
0
        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));
        }
Пример #5
0
        // GET: Home

        //Ana Sayfa işlemleri


        public ActionResult ShowShare()
        {
            return(View("ShowShare", shareManager.ListQueryable().OrderByDescending(x => x.CreatedDate).ToList()));
        }