void IMemberSearchesCommand.DeleteMemberSearch(IUser owner, Guid id)
        {
            var search = _repository.GetMemberSearch(id);

            if (search != null)
            {
                if (!CanAccessSearch(owner, search))
                {
                    throw new MemberSearchesPermissionsException(owner, search.Id);
                }

                _repository.DeleteMemberSearch(id);
            }
        }
Beispiel #2
0
 MemberSearch IMemberSearchesQuery.GetMemberSearch(Guid id)
 {
     return(_repository.GetMemberSearch(id));
 }