예제 #1
0
        public IEnumerable <Member> GetMembers()
        {
            if (_membersRepository.GetMembers() == null)
            {
                throw new KeyNotFoundException("No members in list");
            }

            return(_membersRepository.GetMembers());
        }
 public List <Member> GetAllMembers()
 {
     return(_repo.GetMembers());
 }
예제 #3
0
 public IEnumerable <Member> GetAllMembers()
 {
     return(_membersRepository.GetMembers());
 }
예제 #4
0
 IList <Member> IMembersQuery.GetMembers(IEnumerable <Guid> ids)
 {
     return(_repository.GetMembers(ids));
 }
        public IActionResult Index()
        {
            List <Member> members = _repo.GetMembers();

            return(View(members));
        }
 public ActionResult <IEnumerable <Member> > GetAllMembers()
 {
     return(StatusCode(200, _membersRepository.GetMembers()));
 }