示例#1
0
        /// <summary>
        /// Search the database for records that meets our parameters
        /// </summary>
        /// <param name="name">Checks that any record contains this name</param>
        /// <param name="dateOfBirth">looks for records from this year</param>
        /// <param name="email">checks that any record contains this email</param>
        /// <returns>returns the list of people whos passed the filtering</returns>
        public List <Person> SearchResult(string name = null, DateTime?dateOfBirth = null, string email = null)
        {
            List <Person> result = GetPersons();

            return(CommonPersonManager.CommonSearch(result, name, dateOfBirth, email).ToList());
        }
 public List <Person> SearchResult(string name = null, DateTime?dateOfBirth = null, string email = null)
 {
     return(CommonPersonManager.CommonSearch(BinaryDatabase, name, dateOfBirth, email).ToList());
 }