示例#1
0
        // GET: RedSpots
        public ActionResult Index()
        {
            var section = BraveManage.FindAllSection();
            var redsopt = BraveManage.FindAllSpots();

            ViewModels.Brave index = new ViewModels.Brave();
            index.spots1      = redsopt;
            index.RedSection1 = section;
            return(View(index));
        }
示例#2
0
        public ActionResult ShareDetails(int id)
        {
            var redsharede1 = BraveManage.FindSharede(id);

            var gengduored = BraveManage.FindAllSpots().OrderByDescending(p => p.RedSpots_id).Take(10);

            ViewBag.name11 = redsharede1.RedSpots.RedSpotsName;
            ViewBag.redid  = redsharede1.RedSpots_id;
            ViewModels.Brave index = new ViewModels.Brave()
            {
                spots1     = gengduored,
                redsharede = redsharede1,
            };
            return(View(index));
        }
示例#3
0
        public ActionResult Details(int id)
        {
            var redde      = BraveManage.FindRedId(id);
            var redshare   = BraveManage.FindShareid(id);
            var gengduored = BraveManage.FindAllSpots().OrderByDescending(p => p.RedSpots_id).Take(10);
            var comred     = CommentRedSpotsManage.FindRedCom(id);

            if (redde == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            ViewModels.Brave index = new ViewModels.Brave()
            {
                spots1    = gengduored,
                redshare1 = redshare,
                redde1    = redde,
                Commred1  = comred,
            };
            ViewBag.count1 = BraveManage.findcoment(id);
            return(View(index));
        }