Exemplo n.º 1
0
        public JsonResult GetSavedSearches(Int64 SenderEntityID = 1, Int64 RecipientEntityID = 1)
        {

            workspaceInfo = new WorkspaceInfo();
            workspaceInfo.GetWorkspaceInformation();
            workspaceInfo.SetSession(HttpContext.Session);

            List<SavedSearch> SavedSearches;

            using (SqlConnection connection = workspaceInfo.GetAndOpenSQLConnection())
            {
                SavedSearches = workspaceInfo.GetSavedSearches(connection);
            }

            return Json(SavedSearches, JsonRequestBehavior.AllowGet);
        }