Exemple #1
0
        public async Task <MemberImage> UpdateMemberImage(Guid currentMemberId, Guid memberId, UpdateMemberImage image)
        {
            Member member = await GetMember(currentMemberId, memberId, true);

            MemberImage updated = await _memberService.UpdateMemberImage(member.Id, image);

            _cacheService.RemoveVersionedItem <MemberImage>(memberId);

            return(updated);
        }
Exemple #2
0
        public async Task <MemberImage> UpdateMemberImage(Guid id, UpdateMemberImage image)
        {
            Member member = await GetMember(id, id);

            return(await UpdateMemberImage(member, image.ImageData, image.MimeType));
        }