Пример #1
0
        public Major Find(string majorId)
        {
            var major = _majorRepository.GetMajorByMajorId(majorId);

            if (major == null)
            {
                throw new NotFoundException("No se encontro la carrera");
            }
            return(major);
        }
Пример #2
0
 public Major Find(string majorId)
 {
     return(_majorRepository.GetMajorByMajorId(majorId));
 }