Ejemplo n.º 1
0
        public async Task PutBlock([FromBody] BuddyLookup lookupData)
        {
            var   from_profile = (await profileRepository.Lookup(lookupData.SourceProfile)).First();
            var   to_profile   = (await profileRepository.Lookup(lookupData.TargetProfile)).First();
            Block block        = new Block();

            block.FromProfileid = from_profile.Id;
            block.ToProfileid   = to_profile.Id;
            await blockRepository.Create(block);

            blockRepository.SendAddEvent(from_profile, to_profile);
        }