public IActionResult GetAllMembers()
        {
            var members = _membersService.GetAllMembers();
            var model   = new MembersModel(members);

            return(View("AllMembers", model));
        }
Esempio n. 2
0
 public async Task <IActionResult> GetAllMembers()
 {
     return(Ok(await service.GetAllMembers()));
 }
Esempio n. 3
0
        public async Task <IActionResult> GetMembers()
        {
            var members = await _membersService.GetAllMembers();

            return(Ok(members));
        }