Example #1
0
 public Major Get(int id)
 {
     return(_majorRepository.Get(id));
 }
Example #2
0
 private IQueryable <Major> GetActiveById(int id) => _majorRepository.Get(id).Where(x => x.Enabled);