Пример #1
0
        public JsonResult SavePesquisa(string nomePesquisa)
        {
            if (FacebookWebContext.Current.IsAuthenticated())
            {

                int idPesquisa = Convert.ToInt32(System.Web.HttpContext.Current.Session["pesquisa_id"]);

                var client = new FacebookWebClient();
                dynamic me = client.Get("me");

                using (tcc_imoveisEntities tcc = new tcc_imoveisEntities())
                {

                    tcc.SalvaPesquisa(idPesquisa, me.id, nomePesquisa);
                }
                return Json(true);

            }
            return Json(false);
        }