Example #1
0
        public ActionResult Search(SearchBL.SearchForm Model)
        {
            Session["SearchLimits"] = null;
            var result      = SearchBL.DeleteSearchQuery(CurrentUser.UserId);//no need to check isDeleted or not to Add new search query.
            var newSearchID = SearchBL.SearchQueryAdd(Model, CurrentUser.UserId);

            Model.SearchId = newSearchID;

            Session["SearchLimits"] = Model;

            return(Json(true, JsonRequestBehavior.AllowGet));
        }