public async Task<IList<vappevent>> ListTodayEvents(int memberId = -1)
        {
            try
            {
                var events = _appEventRepo.All().ToList().Where(c =>
                    (c.IsRepeatable && (c.EventDate - DateTime.Today).Days % c.RepeatInterval == 0) || c.EventDate == DateTime.Today);

                if (memberId != -1)
                {
                    var client = new AccountClient();
                    var member = await client.GetMemberAsync(memberId).ToResult<MemberModel>();

                    int[] groupIds = member.Groups.Select(c => c.GroupID).ToArray();

                    events = events.Where(c => ListEventGroups(c.ID).Intersect(groupIds).Count() > 0);
                }
                return events.ToList();
            }
            catch (HttpRequestException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        protected async Task<MemberModel> CurrentChurchMember()
        {
            try
            {
                if (CurrentMemberID != 0)
                {
                    var client = new AccountClient();
                    var response = await client.GetMemberAsync(CurrentMemberID);
                    response.EnsureSuccessStatusCode();
                    _currentChurchMember = await response.Content.ReadAsAsync<MemberModel>();
                }

                return _currentChurchMember;
            }
            catch (HttpRequestException ex)
            {
                throw ex;
            }
        }