public bool VolunteerHasAccessToThisOrg(int organisationId, string email) { var selectedOrganisations = _organisationRepository.GetAllOrganisationByVolunteerEmail(email); return(selectedOrganisations.Any(o => o.OrganisationId == organisationId)); }
public List <DisplaySelectOrganisation> GetOrganisationListForCurrentUser(string email) { return(_organisationRepository.GetAllOrganisationByVolunteerEmail(email)); }