示例#1
0
        public ActionResult LiveMap()
        {
            LiveTrackHandler handler = new LiveTrackHandler();
            var detail = handler.getVoteDetail();

            return(View(detail));
        }
        public ActionResult VoteAction(int selectedCategory)
        {
            VoteDetail renderDetail = new VoteDetail()
            {
                LocationDetail = locationDetail,
                GradeValue     = LiveTrackHandler.getGrade(selectedCategory),
                Id             = 20
            };

            voteCollection.Add(renderDetail);
            if (IsRoadCleaned)
            {
                IsRoadCleaned = false;
            }
            return(Json(true));
        }