Exemplo n.º 1
0
        public ActionResult AddContent(String tags, String presents, String name)
        {
            ProcessStringData.createUser(name, tags, presents);
            List <int> tid = ProcessStringData.getTagsFromString(tags);
            List <int> pid = ProcessStringData.getPresentsFromString(presents);

            return(Json(new { tid, pid }));
        }
Exemplo n.º 2
0
        public ActionResult UserRequest(String tags)
        {
            var             res  = ProcessStringData.getAnswer(tags);
            List <GiftItem> resx = new List <GiftItem>();

            foreach (var x in res)
            {
                resx.Add(new GiftItem(x.Key, (int)(x.Value * 100.0)));
            }
            return(Json(new { result = resx }));
        }
Exemplo n.º 3
0
 public ActionResult YourViaFacebook()
 {
     ViewBag.Gifts = ProcessStringData.getGifts();
     return(View());
 }
Exemplo n.º 4
0
 public ActionResult AddContent()
 {
     ViewBag.Tags  = ProcessStringData.getTags();
     ViewBag.Gifts = ProcessStringData.getGifts();
     return(View());
 }
Exemplo n.º 5
0
        public ActionResult UserRequest()
        {
            ViewBag.Tags = ProcessStringData.getTags();

            return(View());
        }