public List <MajorModel> GetAllMajor() { try { return(majorRepository.GetAll()); } catch (Exception ex) { throw ex; } }
public List <ProjectByMajorEntryModel> CreateProjectsByMajor() { var list = new List <ProjectByMajorEntryModel>(); var majors = _majorRepository.GetAll().ToList(); foreach (var m in majors) { var totalProjectsByMajor = GetProjectsTotalByMajor(m); list.Add(new ProjectByMajorEntryModel { Carrera = m.Name, Proyectos = totalProjectsByMajor }); } return(list); }
public IEnumerable <Major> GetAll() { return(_majorRepository.GetAll()); }
public IList <Major> GetAll() { return(majorRepository.GetAll()); }
public IQueryable <Major> All() { return(_majorRepository.GetAll()); }