public int Edit(RecentSearchModel obj)
        {
            RecentSearchModel objOld = this.uow.RecentSearches.Queryable().Where(x => x.recentSearchID == obj.recentSearchID).FirstOrDefault();

            if (objOld != null)
            {
                objOld.searchCriteria     = obj.searchCriteria;
                objOld.searchCriteriaName = obj.searchCriteriaName;
                objOld.searchType         = obj.searchType;
                objOld.displayCriteria    = obj.displayCriteria;
                this.uow.RecentSearches.Edit(objOld);
                return(this.uow.Save());
            }
            return(0);
        }
 public int Add(RecentSearchModel obj)
 {
     this.uow.RecentSearches.Add(obj);
     return(this.uow.Save());
 }