// GET: GroupMembers/Details/5
        public async Task <IActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var groupMember = await _groupMember.GetGroupMemberById((int)id);

            if (groupMember == null)
            {
                return(NotFound());
            }

            return(View(groupMember));
        }