예제 #1
0
        public async Task <DroneDto> GetAsync(Guid id, Guid organisationId)
        {
            var drone = await _repository.GetAsync(id);

            if (drone.OrganisationId != organisationId)
            {
                return(null);
            }

            return(_mapper.Map <DroneDto>(drone));
        }