public async Task CreateRelation(CreateRelationDTO input) { try { await _relationService.CreateRelation(input); } catch (Exception) { throw; } }
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); }