Esempio n. 1
0
 public async Task CreateRelation(CreateRelationDTO input)
 {
     try
     {
         await _relationService.CreateRelation(input);
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 2
0
        public async Task CreateRelation(CreateRelationDTO input)
        {
            Relation relation = new Relation()
            {
                ArtifactId = input.ArtifactId,
                ContentId  = input.ContentId,
                BeaconId   = input.BeaconId,
                Proximity  = (Proximity)Enum.Parse(typeof(Proximity), input.Proximity, true),
            };

            relation.LocationId = input.LocationId;
            await _relationRepository.Create(relation);
        }