Esempio n. 1
0
        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);
            }
        }