Example #1
0
        public IEnumerable <Major> FindByName(string name)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw new ArgumentNullException("name");
            }

            return(_majorRepository.Find(m => m.Name.Contains(name)));
        }