public static string GetHash(this CandidateListModel model)
 {
     return(model.GetType() == typeof(SearchListModel)
         ? model.Criteria.GetHash()
         : null);
 }
 public static bool SetHash(this CandidateListModel model)
 {
     return(model.GetType() == typeof(SearchListModel));
 }