public IEnumerable <Major> FindByName(string name) { if (string.IsNullOrEmpty(name)) { throw new ArgumentNullException("name"); } return(_majorRepository.Find(m => m.Name.Contains(name))); }